Docsity

Asymptotic Notation: Order of Functions, Exercises of Advanced Algorithms

Toggle sidebar
bg1
Asymptotic notation
Put these functions in order so that if f(n)โˆˆO(g(n)) (i.e. f(n) is Big-Oh
of g(n)), then f(n) appears before g(n) in the list. Group together functions
that have the same asymptotic order of growth (i.e. f(n)โˆˆฮ˜g(n)).
n2, n log n, n3+ log n, โˆšn, n2+ 2nlog n,
log log n, 17 log n, 10n3
2, n5โˆ’n4+ 2n,
5n2log log n, 3n2+n3log n, n + 6 log n
1
docsity.com

Partial preview of the text

Download Asymptotic Notation: Order of Functions and more Exercises Advanced Algorithms in PDF only on Docsity!

Asymptotic notation

Put these functions in order so that if f (n) โˆˆ O(g(n)) (i.e. f (n) is Big-Oh

of g(n)), then f (n) appears before g(n) in the list. Group together functions

that have the same asymptotic order of growth (i.e. f (n) โˆˆ ฮ˜g(n)).

n 2 , n log n, n 3

  • log n,

n, n 2

  • 2n log n,

log log n, 17 log n, 10 n

3 (^2) , n^5 โˆ’ n^4 + 2n,

5 n

2 log log n, 3 n

2

  • n

3 log n, n + 6 log n

docsity.com