UGC-NET Jun 2015 · Asymptotic Analysis & Recurrences

MCQ · 2 marks · Problem PROG-DIVC-0047

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
  4. D
    Polynomial time using back tracking algorithm

Solve it on GATE DA practice →More Searching & Sorting Algorithms problems

Show the worked solutionTSP is NP-hard, so no polynomial-time algorithm is known. The Held-Karp dynamic program runs in \(O(n^2 2^n)\), and branch-and-bound prunes the search but is still exponential in the worst case.(A), (B), (D) claim polynomial time, which would imply P = NP — incorrect.(C) Exponential time with dynamic programming or branch-and-bound — correct.Answer: C

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com