1.

Which of the following methods can be used to solve n-queen’s problem?(a) greedy algorithm(b) divide and conquer(c) iterative improvement(d) backtrackingI got this question by my school teacher while I was bunking the class.The question is from Backtracking in chapter Backtracking of Data Structures & Algorithms II

Answer»

Correct ANSWER is (d) backtracking

To explain: Of the following GIVEN APPROACHES, n-queens PROBLEM can be SOLVED using backtracking. It can also be solved using branch and bound.



Discussion

No Comment Found

Related InterviewSolutions