Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

( Each problem is 2 points. ) ( a ) ( 2 points ) Suppose that AlgA and AlgB are two algorithms that solve the

(Each problem is 2 points.)
(a)(2 points)
Suppose that AlgA and AlgB are two algorithms that solve the same problem. If the runtime of AlgA on an input of size n is exponential in terms of n and the runtime of AlgB is polynomial in terms of n then AlgB will always run faster than AlgA on all inputs.
True
False
(b)(2 points) Suppose that T(n)=4T(n2)+cn2 and S(n)=9S(n3)+cn2. Assuming that T(1)=S(1)=c, what is true about T(n) and S(n)?
T(n)=O(S(n))T(n)=(S(n))T(n)=(S(n))
(c) Suppose T(n)=6T(n3)+O(n2). Use Master Theorem to solve this recurrence. (give the values of ab and d and the closed form of the recurrence in terms of O.)
(d)(2 points) If A is in NP and A reduces to B then B must be in NP.
True
False
Unknown
(e)(2 points) If the vertices of a DAG are put in topological ordering then all of the edges go from a vertex earlier in the list to a vertex later in the list.
True
False
(f)(2 points) If A is in P and B is NP-complete then A reduces to B.
True
False
Unknown
(g)(2 points)3SAT is in NP.
True
False
Unknown
image text in transcribed

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

Database Systems Design Implementation And Management

Authors: Peter Rob, Carlos Coronel

3rd Edition

0760049041, 978-0760049044

More Books

Students also viewed these Databases questions

Question

Who are the participants in securities lending?

Answered: 1 week ago