Understand the running order of 7 functions O(1), O(n log n), O(n), O(n2 ), O(n3 ), O(log n), O(an ). 1.2. For a given function, compute the asymptotic upper bound using “big-Oh” notation. Examples: • f(n) = 100n3 − 7n3 + 14n2 • f(n) = 100n3 − 100n3 + 7n2 • f(n) = .001n3 +100·2n • f(n) = n log n + n/5 • f(n) = n log n + n2

icon
Related questions
Question

 Understand the running order of 7 functions O(1), O(n log n), O(n), O(n2 ), O(n3 ), O(log n), O(an ).
1.2. For a given function, compute the asymptotic upper bound using “big-Oh” notation.
Examples:
• f(n) = 100n3 − 7n3 + 14n2
• f(n) = 100n3 − 100n3 + 7n2
• f(n) = .001n3 +100·2n
• f(n) = n log n + n/5
• f(n) = n log n + n2

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps

Blurred answer