Question
A graph G = (V, E) has a vertex cover of size k if there is a subset V 0 V of size k such
A graph G = (V, E) has a vertex cover of size k if there is a subset V 0 V of size k such that for every edge (u, v) E at least one of u and v is in V 0 .
(a) The vertex cover decision problem is to determine if there is a vertex cover of size m in a graph G = (V, E) where m |V |. Show this problem is NP by writing a polynomial-time nondeterministic algorithm to solve it.
(b) What is the worst-case time complexity of the verification stage of this algorithm?
(c) Show that the vertex cover decision problem is NP-complete by reducing the clique decision problem to it. (Hint: consider the complement of the graph, that is the graph with the same vertices but with edges only between all pairs of vertices that are not adjacent in the original graph.)
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