





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






Why is Analysis of Algorithm important? • (^) So performance is like currency through which we can buy all the above things. Another reason for studying performance is performance == scale.
Why is Analysis of Algorithm important? • (^) So performance is like currency through which we can buy all the above things. Another reason for studying performance is performance == scale.
Order of Growth
Example 1: f(n) = 1000, g(n) = n + 1 For n > 999, g(n) would always be greater than f(n) because order of growth of g(n) is more than f(n). Example 2 : f( n ) = 4n^2 , g(n) = 2n + 2000 f(n) has higher order of growth as it grows quadratically in terms of input size.
Order of Growth