Question: ( 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
 (Each problem is 2 points.) (a)(2 points) Suppose that AlgA and

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!