Question: (a) Define the functions O(), () and () that occur frequently in analyzing the complexity of algorithms. (b) Let p(n) = adn d +ad1n d1
(a) Define the functions O(), () and () that occur frequently in analyzing the complexity of algorithms. (b) Let p(n) = adn d +ad1n d1 + a1n+a0, where ad > 0, be a d-degree polynomial in n. Also a0, , ad are positive constants. Let k be a positive integer. Using your definitions in Part (a) show that: i. If k d, then p(n) = O(n k ). ii. If k d, then p(n) = (n k ). iii. If k = d, then p(n) = (n k ).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
