UGC NET CS 2015Data Structures and Algorithms › Complexity TheoryVerified
UGC NET CS 2015 PYQ: The travelling salesman problem can be solved in
The travelling salesman problem can be solved in
- APolynomial time using dynamic programming algorithm
- BPolynomial time using branch-and-bound algorithm
- CExponential time using dynamic programming algorithm or branch-and-bound algorithmCorrect answer
- DPolynomial time using back tracking algorithm
Answer
(C) Exponential time using dynamic programming algorithm or branch-and-bound algorithm
Approach
Recall that TSP is NP-hard, so no known polynomial-time algorithm exists; DP and branch-and-bound both take exponential time in the worst case.
Reviewed by UGC IQ Editorial Team.