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
Let's consider a system where for security parametern, running for109∗n3clock cycles can break an encryption scheme with probability16∗n10∗2−n. Ifn=64, this probability is 1 (magic!) for109∗n3=109∗643clock cycles, requiring a running timeTof about three days on a1Ghzcomputer. Now a more powerful8Ghzcomputer becomes available. Butnis also doubled to 128 in the encryption scheme as well. Using the same running timeTas before on the new computer, what is the probability for this system to break this current encryption scheme? Please clearly show how you arrive at the conclusion. (Hint: First find out how much computation can be done in the given time on the new computer. Then you can see how that relates to the success probability.).     Please type answer no write by hend.
Consider a Diffie-Hellman scheme with a common prime q = 17 and a primitive root α = 3. a) If user A has a private key XA=4, what is A’s public key, YA? b) A sends YA to B. If B has a private key XB=6, what is the shared secret key, K that B can calculate and share with A? c) If B computes YB and sends it to A, what is the shared secret Key, K computed by A?
Suppose we use the following KB (where x,y,z are variables and r1, r2, r3, goal are constants) to determine whether a particular robot can score a) Open(x) ∧ HasBall(x) -> CanScore(x) b) Open(x) ∧ CanAssist(y,x) ∧ HasBall(y) -> CanScore(x) c) PathClear(x,y) -> CanAssist(x,y) d) PathClear(x,z) ∧ CanAssist(z,y) -> CanAssist(x,y) e) PathClear(x,goal) -> Open(x) f) PathClear(y,x) -> PathClear(x,y) g) HasBall(r3) h) PathClear(r1, goal) i) PathClear(r2, r1) j) PathClear(r3, r2) k) PathClear(r3, goal) Intuitively, CanScore(x) means x can score on goal. CanAssist(x,y) means there exists some series of passes that can get the ball from x to y. Open(x) means x can shoot on goal directly. And PathClear(x,y) means the path between x and y is clear. Provide a SLD-derivation for the query CanScore(x) in which the answer provided is r1. Provide a SLD-derivation for the query CanScore(x) in which the answer provided is r3. How many "distinct" derivations (i.e., involving different…
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