1.

Which of the problems cannot be solved by backtracking method?(a) n-queen problem(b) subset sum problem(c) hamiltonian circuit problem(d) travelling salesman problemI had been asked this question at a job interview.This question is from Backtracking in division Backtracking of Data Structures & Algorithms II

Answer»

Right option is (d) travelling salesman PROBLEM

The best explanation: N-queen problem, SUBSET SUM problem, Hamiltonian circuit problems can be solved by BACKTRACKING METHOD whereas travelling salesman problem is solved by Branch and bound method.



Discussion

No Comment Found

Related InterviewSolutions