Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

Bonus Question

Examples 4 and 5
 All degree k polynomials are O(nk)
p ( n )=O(n K)

∃ c , no >0 s . t . ∀ no >n

p ( n ) ≤c nk , k ≥1
p (n ) p (n)
k
≤ c , Knowing: lim k =ak
n n→ ∞ n

a k ≤ c ,let c=2 a k

a k ≤ 2 ak , true p ( n ) =O(n K)

 For any k ≥1, nk is not O(nk-1)


Let Assume nk =O ( n k−1)
∃ c , no >0 s . t . ∀ no >n

n k ≤ c ( nk−1 ) , k ≥ 1

nk
≤c
nk−1

n k−k+1 ≤ c
n ≤ c ,let c=2 , n=1 , k =1

1 ≠2 , contradiction

thus :nk ≠O ( n k−1)

You might also like