/*! This file is auto-generated */ .wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em}.wp-block-file__button{background:#32373c;color:#fff;text-decoration:none} Q1E Question: Answer each part TRUE ... [FREE SOLUTION] | 91Ó°ÊÓ

91Ó°ÊÓ

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=2 2n⩽cn=2n for all n>=1

Thus Big-O holds.

02

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

b)n2=O(n)isFalse

n2=cn n2<=cn for all n>=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 n2⩽cn log2n for all n>=n0.

04

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

d)nlogn=O(n2)isTrue

log n=O(n) there exist positive constants c and n0 such that log n⩽cn for all n>=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 3n⩽c2n for all n>=n0.

06

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

f) 22n=O(22n)isTrue

We know any function fn is O(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 91Ó°ÊÓ!

One App. One Place for Learning.

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

Get started for free

Most popular questions from this chapter

See all solutions

Recommended explanations on Computer Science Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.