1.

Which of the following can traverse the state space tree only in DFS manner?(a) branch and bound(b) dynamic programming(c) greedy algorithm(d) backtrackingI got this question during a job interview.I would like to ask this question from Graph Search in chapter Graph Search of Data Structures & Algorithms II

Answer»

Correct CHOICE is (d) backtracking

Easiest explanation - Both backtracking as well as branch and BOUND are PROBLEM solving algorithms. Branch and bound can TRAVERSE in DFS as well as BFS MANNER whereas backtracking only traverses in DFS manner.



Discussion

No Comment Found

Related InterviewSolutions