Warning: foreach() argument must be of type array|object, bool given in /var/www/html/web/app/themes/studypress-core-theme/template-parts/header/mobile-offcanvas.php on line 20

Question: Answer each part TRUE or FALSE.

a.2n=O(n)b.n2=O(n)·Ac.n2=O(nlog2n)·Ad.nlogn=O(n2)e.3n=2O(n)f.22n=O(22n)

Short Answer

Expert verified

(a) 2n=O(n)is True.

(b)n2=O(n)isFalse.

(c)n2=O(nlog2n)isFalse.

(d)nlogn=O(n2)isTrue.

(e)3n=O(2n)isFalse.

(f)22n=O(22n) is True.

Step by step solution

01

To check whether 2n = O(n)  True or false

a)2n=O(n)isTrue

Suppose.c=22ncn=2nforalln>=1

Thus Big-O holds.

02

To check whether  O(n)n2=O(n) True or false

b)n2=O(n)isFalse

n2=cnn2<=cnforalln>=n0doesn’t hold.

03

To check whether  n2=O(nlog2n) True or false

c)n2=O(nlog2n) isFalse

There doesn’t exist positive constants n0 and c such that n2cnlog2nforalln>=n0.

04

To Find whether  nlogn=O(n2) True or false

d)nlogn=O(n2)isTrue

logn=O(n) there exist positive constants c and n0 such that log ncnforalln>=n0.

05

To Find whether  n = 2O(n) True or false

e) 3n=2O(n)isFalse

there doesn’t exist constants c and n0 such that 3nc2nforalln>=n0.

06

To Find whether 22n=O(22n)  True or false

f) 22n=O(22n)isTrue

We know any function fnisO(f(n)).

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with Vaia!

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Study anywhere. Anytime. Across all devices.

Sign-up for free