Artificial Intelligence: A Modern Approach
Artificial Intelligence: A Modern Approach
3rd Edition
ISBN: 9780136042594
Author: Stuart Russell, Peter Norvig
Publisher: Prentice Hall
Expert Solution & Answer
Book Icon
Chapter 6, Problem 2E

Explanation of Solution

a.

Solution A: There exists a variable corresponding to every “n2” positions on the board.

Solution B: There is a variable corresponding to every knight.

Explanation of Solution

b.

Solution A: Each of the variables can be taken one of two values. The values can be taken are, “occupied” and “vacant”.

Solution B: Domain of each variable is the set of squares.

Explanation of Solution

c.

Solution A: Each and every pair of square separated by knight’s move constrained, such that both cannot be occupied. The entire set of squares is constrained, such that the number of occupied squares should be “k”.

Solution B: Each and every pair of knights is constrained, such that no two knights can be on the same square or on squares separated by a knight’s move. The solution B may be preferable because there is no global constraint, although the solution A has the smaller state space when “k” is large.

Explanation of Solution

d.

The solutions must be describing a complete-state formulation. This is because the use of local search algorithm to find the solution. The successor function must be completely connecting the space for simulated annealing. The goal state must be reachable hillclimbing from initial state, for a random-restart. The two basic solutions are,

Solution C: Ensure that no attack at any time. Actions are to remove any knight, add a knight in any unattacked square, or move a knight to any unattacked square.

Solution D: allow attacks but try to get rid of them. Actions are to remove any knight, add a knight in any square, or move a knight to any square.

Want to see more full solutions like this?

Subscribe now to access step-by-step solutions to millions of textbook problems written by subject matter experts!
Students have asked these similar questions
Write the following in C# WinForms. Implement a function in the main menu that makes the poacher move to random direction. The movement should seem seamless. The poacher can be drew by the following in the main menu.                 e.Graphics.DrawImage(poacherImage, poacher.X, poacherY, tileSize, tileSize);  Create the appropriate poacher class as well
Write the following in C# WinForms. Implement a function in the main menu that makes the poacher move to random direction. The movement should seem seamless. The poacher can be drew by the following in the main menu.                 e.Graphics.DrawImage(poacherImage, poacher.X, poacherY, tileSize, tileSize);
Write the following in C# WinForms. Implement a function in the main menu that makes the poacher move to random directions. The movement should seem seamless. The poacher can be drew by the following in the main menu.                  e.Graphics.DrawImage(poacherImage, poacher.X, poacherY, tileSize, tileSize);
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Operations Research : Applications and Algorithms
Computer Science
ISBN:9780534380588
Author:Wayne L. Winston
Publisher:Brooks Cole
Text book image
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning
Text book image
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
Text book image
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Text book image
LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
Computer Science
ISBN:9781337569798
Author:ECKERT
Publisher:CENGAGE L