Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2) The 8-Queens problem is to place 8 queens (Chess pieces) onto an 8 x 8 A B C D E F G H board

image text in transcribed

2) The 8-Queens problem is to place 8 queens (Chess pieces) onto an 8 x 8 A B C D E F G H board so that no queen can capture (in the Chess sense) any other queen. In other words, no two queens are in the same row, same column, XX Q|XX or same diagonal (note: there are two diagonal directions). Setting this up as a constraint satisfaction problem, the variables (nodes) are the 8 queens. Assuming the ith queen must be located in the ith column means there are 8 possible values for each variable specifying the row number where that queen could be located. There are arcs in the constraint graph between every pair of nodes because the given constraints apply between every pair of queens. Say we have a state in the search for a solution in which 4 queens' positions have been determined as shown in the figure on the right. Q a) Using an X, mark all squares in columns A,B,G, and H that will be eliminated as possible values for a queen using Forward Checking based on all 4 queens already on the board. The X's in the first row have already been filled in to get you started. b) Using a Z, mark all squares in columns A,B,G, and H that are not already marked with an X and that will be eliminated by Arc Consistency (AC-3). c) What condition(s) in a marked figure like the one above would indicate a deadend in a backtracking search with Arc Consistency and constitute a backtrack point when searching for a solution? 2) The 8-Queens problem is to place 8 queens (Chess pieces) onto an 8 x 8 A B C D E F G H board so that no queen can capture (in the Chess sense) any other queen. In other words, no two queens are in the same row, same column, XX Q|XX or same diagonal (note: there are two diagonal directions). Setting this up as a constraint satisfaction problem, the variables (nodes) are the 8 queens. Assuming the ith queen must be located in the ith column means there are 8 possible values for each variable specifying the row number where that queen could be located. There are arcs in the constraint graph between every pair of nodes because the given constraints apply between every pair of queens. Say we have a state in the search for a solution in which 4 queens' positions have been determined as shown in the figure on the right. Q a) Using an X, mark all squares in columns A,B,G, and H that will be eliminated as possible values for a queen using Forward Checking based on all 4 queens already on the board. The X's in the first row have already been filled in to get you started. b) Using a Z, mark all squares in columns A,B,G, and H that are not already marked with an X and that will be eliminated by Arc Consistency (AC-3). c) What condition(s) in a marked figure like the one above would indicate a deadend in a backtracking search with Arc Consistency and constitute a backtrack point when searching for a solution

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design Query Formulation And Administration Using Oracle And PostgreSQL

Authors: Michael Mannino

8th Edition

1948426951, 978-1948426954

More Books

Students also viewed these Databases questions

Question

Balance each of the following redox reactions in basic solution.

Answered: 1 week ago