Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

( 3 0 points ) For each of the following two functions f ( n ) and g ( n ) , indicate whether f

(30 points) For each of the following two functions f(n) and g(n), indicate whether f = O(g), or f =\Omega (g) or both (in which case f =\Theta (g)).
(a) f(n)=n100andg(n)=n200.(b) f(n)= n1/2 and g(n)= n2/3.
(c) f(n)=100n+lgnandg(n)=n+(lgn)2.(d) f(n)= nlgn and g(n)=10nlg(10n).
(e) f(n)=10lgn and g(n)= lg(n2).(f) f(n)= n2/lgn and g(n)= n(lgn)2.
(g) f(n)= n0.1 and g(n)=(lg n)10.(h) f(n)=n and g(n)=(lg n)3.
(i) f(n)= n2n and g(n)=3n.(j) f(n)=2n and g(n)=2n+1.

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

Step: 3

blur-text-image

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

Database Driven Web Sites

Authors: Joline Morrison, Mike Morrison

2nd Edition

? 061906448X, 978-0619064488

More Books

Students also viewed these Databases questions

Question

2. Are you varying your pitch (to avoid being monotonous)?

Answered: 1 week ago

Question

3. Are you varying your speaking rate and volume?

Answered: 1 week ago