





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A fundamental introduction to the analysis of algorithms, a crucial aspect of computer science. It explores the importance of analyzing algorithm performance in terms of time and space efficiency, emphasizing the concept of scalability. The document delves into the concept of order of growth, illustrating how to determine the efficiency of algorithms based on their growth rate. It also introduces asymptotic analysis, a method for evaluating algorithm performance in relation to input size, highlighting the differences between linear and logarithmic growth.
Typology: Summaries
1 / 9
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