Optimization versus search. Recall the traveling salesman problem: TSP Input: A matrix of distances; a budget b Output: A tour which passes through all the cities and has length b, if such a tour exists. The optimization version of this problem asks directly for the shortest tour. TSP-OPT Input: A matrix of distances Output: The shortest tour which passes through all the cities. Show that if TSP can be solved in polynomial time, then so can TSP-OPT
Read moreTextbook Solutions for Algorithms
Chapter 8 Problem 8.14
Question
Prove that the following problem is NP-complete: given an undirected graph G = (V, E) and aninteger k, return a clique of size k as well as an independent set of size k, provided both exist.
Solution
Step 1 of 4
The undirected graph is the graph where
represents the set of undirected edges that is obtained by removing the arrowheads from the directed edges and making them bidirectional in
. Let’s name this problem as CLIQUE-IS.
Subscribe to view the
full solution
full solution
Title
Algorithms 1
Author
Sanjoy Dasgupta Algorithms, Christos H. Papadimitriou Algorithms, Umesh Vazirani Algorithms
ISBN
9780073523408