Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PART 2 - Comparing the orders of growth between two algorithms ( 4 pts ) Say we have two different algorithms with respective runtimes of

PART 2- Comparing the orders of growth between two algorithms (4pts)
Say we have two different algorithms with respective runtimes of f(n) and g(n). Given the following cases, prove whether or not f(n) is O(g(n)) in each case.
You need to show your work with the crucial steps, e.g. finding the necessarily constant c in the definition of Big-O. You may utilize the pull-up/pull-down or the l'Hopital's trick discussed in class whenever needed.
You will be penalized for up to 1 pt in total if all your work for this entire PART exceeds a whole A4/US letter page in 12px font size (assuming you start from the top of the page).
P.S. sqrt(n) means the square-root of n, aka n^((1)/(2)).
Case
f(n)
g(n)
A
log(n1000)
log(n0.0001)
B
sqrt(n)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Concepts of Database Management

Authors: Philip J. Pratt, Joseph J. Adamski

7th edition

978-1111825911, 1111825912, 978-1133684374, 1133684378, 978-111182591

More Books

Students also viewed these Databases questions

Question

=+ Who do you think is right? Why?

Answered: 1 week ago