Chapter 8: 23E (page 282)
In the NODE-DISJOINT PATHS problem, the input is an undirected graph in which some vertices have been specially marked: a certain number of “sources” and an equal number of “destinations” . The goal is to find node-disjoint paths (that is, paths which have no nodes in common) where the th path goes from to . Show that this problem is NP-complete.Here is a sequence of progressively stronger hints.
- Reduce from .
- For a formula with m clauses and n variables, use sources and destinations. Introduce one source/destination pair for each variable , and one source/destination pair for each clause .
- For each clause, introducenew intermediate vertices, one for each literal occurring in that clause and one for its complement.
Notice that if the path from to goes through some intermediate vertex representing, say, an occurrence of variable , then no other path can go through that vertex. What vertex would you like the other path to be forced to go through instead?
Short Answer
The given problem is NP-Complete.