Which of the following statements is correct about n-queen problem?

2022

Which of the following statements is correct about n-queen problem?

  1. A.

    3-queen problem has 1 solution.

  2. B.

    4-queen problem has 3 solutions.

  3. C.

    5-queen problem has 2 solutions.

  4. D.

    6-queen problem has 4 solutions.

Attempted by 17 students.

Show answer & explanation

Correct answer: D

The n-queen problem asks for distinct arrangements of N queens on an NxN board. For n=3, there are 0 solutions. For n=4, there are exactly 2 distinct solutions. For n=5, there are 10 solutions. However, for n=6, there are exactly 4 distinct solutions, making the statement regarding six queens correct.

Explore the full course: Up Lt Grade Assistant Teacher 2025