Question: did i do this correctly my work is below Show that the following problem is in N P : 1 . Given a directed graph
did i do this correctly my work is below
Show that the following problem is in N P :
Given a directed graph
G is there a directed circuit path that starts and ends on the same node ie a loop through
the graph that goes through each node exactly once.
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. k num clauses
k nodes
OK 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 KG since K nodes
are selected and each is joined by an edge.
Suppose has a KG 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
