Question: Q 6 . ( 5 0 points ) For the 3 queens problem, how many different arrangements of 3 queens ( Q 1 , Q

Q6.(50 points)
For the 3 queens problem, how many different arrangements of 3 queens (Q1, Q2, Q3) are possible in a 3 X 3 chessboard under the following conditions:
Queens in the same rows, columns or diagonals as other queens are considered under attack. The arrangements you are counting should be such that no queens should be under attack.
Q1 should be in row 1, Q2 should be in row 2, Q3 should be in row 3.
Derive the arrangement/s by drawing a state space tree and illustrating backtracking. Finally list out the arrangements.
For the 5 queens problem, derive only the first possible arrangement by drawing a state space tree and illustrating backtracking in a 5 X 5 chessboard, when Q1 starts at column 4. Finally list out the arrangement. Q1 should be in row 1, Q2 should be in row 2, etc.
Note: The graph (tree) that we worked on in class, is called the state space tree. The queens can be represented by Q1, Q2, Q3 or x1, x2, x3

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!