Question: did i do this correctly my work is below Show that the following problem is in N P : 1 . Given a graph G
did i do this correctly my work is below
Show that the following problem is in N P :
Given a graph G
V E and integer K V is there a subset V V of size k such that every vertex
v in V V shares an edge with a vertex in V
Running time: On
SAT G
Let be a formula with clauses. Generate an undirected graph :
For each clause in make a node for each literal. Make edge between every
pair of nodes, except:
Nodes in the same clause
Nodes that are negations of each other
Yes. num clauses
nodes
edges fewer
than complete graph
is satisfiable has a G
Suppose is satisfiable. Then at least
one literal is true in each clause. For each
clause, select a node in for one of the true
literals. This forms a G since nodes
are selected and each is joined by an edge.
Suppose has a G Then there is
a noncontradictory node from the
G in each clause.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
