/*! 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

Give a counter example to show that the following construction fails to prove that the class of context-free languages is closed under star. Let A be a CFL G=(V,∑,R,S)that is generated by the CFG . Add the new rule S→SSand call the resulting grammar. This grammar is supposed to generate A* .

Give state diagrams of NFAs with the specified number of states recognizing each of the following languages. In all parts, the alphabet is {0,1}.

a. The language{w|wendswith00}with three states

b.The language of Exercise 1.6c with five states

c.The language of Exercise 1.6l with six states

d. The language {0} with two states

e. The language 0*1*0+ with three states

f. The language1*(001+)* with three states

g. The language{ε}with one state

h. The language 0*with one state

Question: Let B be the set of all infinite sequences over {0 , 1}. Show that B is uncountable using a proof by diagonalization.

Use the construction in the proof of Theorem 1.45 to give the state diagrams of NFAs recognizing the union of the languages described in

a. Exercises 1.6a and 1.6b.

b. Exercises 1.6c and 1.6f

This problem is inspired by the single-player game Minesweeper, generalized to an arbitrary graph. Let Gbe an undirected graph, where each node either contains a single, hidden mine or is empty. The player chooses nodes, one by one. If the player chooses a node containing a mine, the player loses. If the player chooses an empty node, the player learns the number of neighboring nodes containing mines. (A neighboring node is one connected to the chosen node by an edge.) The player wins if and when all empty nodes have been so chosen.

In the mine consistency problem, you are given a graphG along with numbers labeling some of G’s nodes. You must determine whether a placement of mines on the remaining nodes is possible, so that any node v that is labeled m has exactly m neighboring nodes containing mines. Formulate this problem as a language and show that it isNPcomplete.

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.