


























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!



























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