Example 1.12:  W  Lower Bounds

The function f(n) is  W (g(n)) iff there exists positive constants c and n0

n0 such that f(n) > cg(n) for all n,  n > n0

 

The function 3n+2 =  W (n) as

3n + 2 > 3n for n > 1

 

(the inequality holds for n > 0, but the definition of W requires an n0  > 0.)

What??? The definition says “positive constants”… ooooo

 

3n + 3 =  W (n)     

100n +6 =  W (n)

 

10n2 + 4n + 2 = W (n2)  as

10n2 + 4n + 2 >   n2   for n > 1

 

6 * 2n + n2  =  W (2n)  as

6 * 2n + n2  >   2n   for n > 1

 

Observe also that

 

3n + 3 =  W (1)  as

3n + 3  >   1   for n > 1

 

10n2 + 4n + 2 = W (1)  ,  6 * 2n + n2  =  W (1)   , 6 * 2n + n2  =  W (n100)  

6 * 2n + n2  =  W (n50.2)   ,  6 * 2n + n2  =  W (n2)   ,  6 * 2n + n2  =  W (n)  

6 * 2n + n2  =  W (1)