Question: Problem 1 . Let's say that we are using the queens algorithm to solve the 7 - Queens problem. ( a ) If col =

Problem 1. Let's say that we are using the queens algorithm to solve the 7-Queens problem.
(a) If col =\begin{tabular}{|l|l|l|l|l|l|l|}
\hline 3 & 6 & 4 & 7 & 1 & 5 & 2\\
\hline & a
\end{tabular}, then where is each queen located on the chessboard? Clearly indicate their locations in the picture below.
(b) If \(\mathrm{col}=\)\begin{tabular}{|l|l|l|l|l|l|l|}
\hline 3 & 6 & 4 & 7 & 1 & 5 & 2\\
\hline
\end{tabular}, what does promising(5) return?
(c) If \(\mathrm{col}=\)\begin{tabular}{|l|l|l|l|l|l|l|}
\hline 3 & 6 & 4 & 7 & 1 & 5 & 2\\
\hline
\end{tabular}, what does promising(6) return?
(d) If \(\mathrm{col}=\)\begin{tabular}{|l|l|l|l|l|l|l|}
\hline 3 & 6 & 4 & 7 & 1 & 5 & 2\\
\hline
\end{tabular}, what does promising(7) return?
(e) Let's assume that the queens algorithm has just placed a queen in the fifth column of the first row (see the col array below). Write down what the col array looks like when it finds the next solution.
\[
\mathrm{col}=\begin{array}{|l|l|l|l|l|l|l|}
\hline 5 & & & & & & \\
\hline
\end{array}
\]
Problem 1 . Let's say that we are using the

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 Programming Questions!