1.

In what manner is a state-space tree for a backtracking algorithm constructed?(a) Depth-first search(b) Breadth-first search(c) Twice around the tree(d) Nearest neighbour firstThis question was posed to me during an online interview.The question is from Backtracking in division Backtracking of Data Structures & Algorithms II

Answer»

The CORRECT CHOICE is (a) Depth-first search

The explanation is: A state-space TREE for a backtracking algorithm is CONSTRUCTED in the manner of depth-first search so that it is easy to look into.



Discussion

No Comment Found

Related InterviewSolutions