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.11
Question
There are many variants of Rudratas problem, depending on whether the graph is undirected ordirected, and whether a cycle or path is sought. Reduce the DIRECTED RUDRATA PATH problemto each of the following.(a) The (undirected) RUDRATA PATH problemb) The undirected RUDRATA (s,t)-PATH problem, which is just like RUDRATA PATH exceptthat the endpoints of the path are specified in the input.
Solution
Step 1 of 3
In a graph, the undirected and directed variants refer to the type of graph. If there is a path/cycle
that uses each vertex exactly once, then it is called the path.
Subscribe to view the
full solution
full solution
Title
Algorithms 1
Author
Sanjoy Dasgupta Algorithms, Christos H. Papadimitriou Algorithms, Umesh Vazirani Algorithms
ISBN
9780073523408