Answered step by step
Verified Expert Solution
Question
1 Approved Answer
CSC 2 0 4 - Algorithm Design and Analysis Homework 6 - Dynamic Programming, NP - Completeness Name: _ _ _ _ _ _ _
CSC Algorithm Design and Analysis
Homework Dynamic Programming, NPCompleteness
Name:
Dynamic Programming points
a Consider the rodcutting problem discussed in lecture. Suppose we are
given the following pricelength table below. Fill out the table for the maximum
revenue for each subproblem? points
b Consider the longest common subsequence problem. Suppose we are
given the following sequences below. Fill out the dynamic programming table
below? points
rn
length i
price pi
rn
length i
X atatcg Y ggatgc
g g a t g c
a
t
a
t
c
g
c What is the length of the longest common subsequence from the table
above? points
d What is the longest common subsequence? points
NPCompleteness points
Your professor at Hofstra comes to you one day claiming that they have finally solved
an NPComplete problem. They tell you the following two statements.
The Coloring problem is solvable in worst case time
In the worst case, there does not exist an algorithm to solve Coloring faster than
Assuming that your professor is correct, for each of the following statements below,
state whether the statement is true or false, and then write a few sentences to justify
your answer.
i All NPComplete problems are solvable in polynomial time.
ii All problems in NP are solvable in polynomial time.
iii All NPHard problems are solvable in polynomial time.
On
Omega n
iv All NPComplete problems are solvable in time.
v There exists no NPcomplete problem that can be solved faster than in the
worst case.
vi P NP
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started