Skip to content

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

  1. A
    Polynomial time using dynamic programming algorithm
  2. B
    Polynomial time using branch-and-bound algorithm
  3. C
    Exponential time using dynamic programming algorithm or branch-and-bound algorithm
    Correct answer
  4. D
    Polynomial 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.