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
We examine a problem in which we are handed a collection of coins and are tasked with forming a sum of money n out of the coins. The currency numbers are coins = c1, c2,..., ck, and each coin can be used as many times as we want. What is the bare amount of money required?If the coins are the euro coins (in euros) 1,2,5,10,20,50,100,200 and n = 520, we need at least four coins. The best option is to choose coins with sums of 200+200+100+20.
Let's revisit our first problem, where we want to set up a series of chess matches so we can rank six players in our class. As we did before, we will assume that everyone keeps their chess rating a private secret; however, when two players have a chess match, the person with the higher rating wins 100% of the time. But this time, we are only interested in identifying the BEST of these six players and the WORST of these six players. (We don't care about the relative ordering or ranking of the middle four players.) Your goal is to devise a comparison-based algorithm that is guaranteed to identify the player with the highest rating and the player with the lowest rating. Because you are very strong at Algorithm Design, you know how to do this in the most efficient way. Here are five statements. A. There exists an algorithm to solve this problem using 6 matches, but there does not exist an algorithm using only 5 matches. B. There exists an algorithm to solve this problem using 7 matches,…
4.Answer the question below .
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