






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!







Choosing n in t(n)
Input
1 ms2 ms
3 ms4 ms
5 ms A B C D E F G
worst-case
Functions in Increasing OrderComparison of Growth Rates Function log c N Name log N^2 N N log N 2 N N 2 N^3
Logarithmic^ Constant Log-squared Linear Quadratic^ N^ log^ N Exponential^ Cubic
Comparison of Growth Rates (cont)
0
500
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Comparison of Growth Rates (cont)
0
1000
1 3 5 7 9 11 13 15 17 19
Comparison of Growth Rates (cont)