


























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
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
A comprehensive introduction to asymptotic notation and its application in analyzing the complexity of algorithms. It covers various notations like big-o, big-theta, and big-omega, explaining their significance in understanding the growth rate of functions. The document also delves into the relationship between these notations and provides examples to illustrate their practical application in algorithm analysis. It further explores the concept of summations and their relevance in determining the complexity of algorithms.
Typology: Slides
1 / 34
This page cannot be seen from the preview
Don't miss anything!
2
2
2
2
2
positive constants c 1 , c 2 , and n 0, such that n n 0 , we have 0 c 1 g ( n ) f ( n ) c 2 g ( n )
For function g ( n ), we define Q( g ( n )), big-Theta of n , as the set: Technically, f ( n ) Q( g ( n )). Older usage, f ( n ) = Q( g ( n )). f ( n ) and g ( n ) are nonnegative, for large n****.
2
0
1
2
1
2
2
2
1 , c 2 , and n 0
such that n n 0 , 0 c 1 g ( n ) f ( n ) c 2
positive constants c and n 0, such that n n 0 ,
For function g ( n ), we define O ( g ( n )), big-O of n , as the set: g ( n ) is an asymptotic upper bound for f ( n ). Intuitively : Set of all functions whose rate of growth is the same as or lower than that of g ( n ). f ( n ) = Q ( g ( n )) f ( n ) = O ( g ( n )). Q ( g ( n )) O ( g ( n )).
2
3
4
0
0
0
0
0
0
lim [ f ( n ) / g ( n )] = 0 n
0
0
0
0
n