How to prove that 1 / n is O (1)?

How to mathematically prove that 1 / n is O (1)? I am confused where to start. Any help?

+3
source share
4 answers

As stated in this task, start by defining the Big-O notation.

F(x) = O(G(x)) IFF there exist constants k and m, 
such that for all n > m, k*|G(n)| > F(n). 

(Refer to the text tag for the exact wording here.)

Informally, this means that if we go far enough, then G (n) will dominate F (n), regardless of how big an initial advantage we give F (n) using constant factors.


So how do you confirm something like this?

Evidence like this is usually carried out constructively - showing that certain well-chosen values ​​for m and k do the work of inequality.

. m k, . / , 1/n ( ), , m k .


( Loadmaster): . 1/n = O (1) - , , "". , (, P, NP, EXP), .

+2

, , (N >= 1), 1/2 :)

, 1/n n > 1, , , , n 1 !

+1

, . f (n) = 1/n g (n) = 1. C k , 0 <= f (n) <= C * g (n), n > k. , C = 2 k = 0. n > 0 0 <= 1/n <= 2 * 1. C k 1/n O (1).

Is it necessary to prove this a little more rigorously? Well ... clear 1 / n <1 if and only if 1 <n (by simple algebra). Therefore, if n = 1 (which means 1 / n = 1), we know that 2 * 1> 1 and if n> 1, then this means that it means that 1 / n <1, in this case 2 * 1> 1 / n.

+1
source

You really do not need to prove it, it is a fact. upper bound 1 / n, if n is a positive integer greater than 0, always 1.

-3
source

Source: https://habr.com/ru/post/1766681/


All Articles