Chapter 7: Q21P (page 324)
Let G represent an undirected graph. Also let
a) Show that SPATH? P.
b) Show that LPATH is NP-complete.
Short Answer
a)
b) The LPATH is NP-complete.
Chapter 7: Q21P (page 324)
Let G represent an undirected graph. Also let
a) Show that SPATH? P.
b) Show that LPATH is NP-complete.
a)
b) The LPATH is NP-complete.
All the tools & learning materials you need for study success - in one app.
Get started for freeA cut in an undirected graph is a separation of the vertices V into two disjoint subsets S and T . The size of a cut is the number of edges that have one endpoint in S and the other in T . Let
Show that MAX-CUT is NP-complete. You may assume the result of Problem 7.26. (Hint: Show that. The variable gadget for variable x is a collection of 3c nodes labeled with x and another nodes labeled with x . The clause gadget is a triangle of three edges connecting three nodes labeled with the literals appearing in the clause. Do not use the same node in more than one clause gadget. Prove that this reduction works.)
Let Analyse the algorithm given on page 185 to show that this language is in .
Let ? be a 3cnf-formula. An ≠-assignment to the variables of ? is one where each clause contains two literals with unequal truth values. In other words, an ≠ -assignment satisfies ? without assigning three true literals in any clause.
a. Show that the negation of any ≠ -assignment to ? is also an ≠ -assignment.
b. Let ≠ SAT be the collection of 3cnf-formulas that have an ≠ -assignment. Show that we obtain a polynomial time reduction from 3SAT to ≠ SAT by replacing each clause ci
$$
with the two clauses
Where is a new variable for each clause, and b is a single additional new variable.
c. Conclude that -complete.
Call graphs isomorphic if the nodes of may be reordered so that it is identical to .
Let Show that .
Show thatis a prime number in binary} ?. (Hint: For, the multiplicative group is relatively prime toand } is both cyclic and of orderifis prime. You may use this fact without justifying it. The stronger statementis now known to be true, but it is more difficult to prove.)
What do you think about this solution?
We value your feedback to improve our textbook solutions.