1.

Of the following given options, which one of the following does not provides an optimal solution for 8-queens problem?(a) (5,3,8,4,7,1,6,2)(b) (1,6,3,8,3,2,4,7)(c) (4,1,5,8,6,3,7,2)(d) (6,2,7,1,4,8,5,3)I got this question by my school principal while I was bunking the class.My question is based upon Backtracking in portion Backtracking of Data Structures & Algorithms II

Answer»

Correct CHOICE is (B) (1,6,3,8,3,2,4,7)

Best explanation: The FOLLOWING GIVEN OPTIONS for optimal solutions of 8-queens problem, (1,6,3,8,3,2,4,7) does not provide an optimal solution.



Discussion

No Comment Found

Related InterviewSolutions