Artificial Intelligence: A Modern Approach
Artificial Intelligence: A Modern Approach
3rd Edition
ISBN: 9780136042594
Author: Stuart Russell, Peter Norvig
Publisher: Prentice Hall
bartleby

Concept explainers

Expert Solution & Answer
Book Icon
Chapter 3, Problem 16E

a.

Explanation of Solution

Formulation:

  • Initial state: one arbitrarily selected piece (say a straight piece).
  • Successor function: for any open peg, add any piece type from remaining types.
  • For a curved piece, add “in either orientation”; for a fork, add “in either orientation” and connect “at either hole”...

b.

Explanation of Solution

Search algorithm:

  • All solutions are at the same depth, so depth-first search would be appropriate.
  • The space is very large, so uniform-cost...

c.

Explanation of Solution

Reasons for not removing any one of the “fork” pieces:

  • A solution has no open pegs or holes, so every peg is in a hole, so there must be equal numbers of pegs and holes. Removing a fork violates this property.
  • There are two other “proofs” that are acceptable:
    • a similar argument to the effect that there must be an even number of “ends”...

d.

Explanation of Solution

Upper bound:

  • The maximum possible number of open pegs is 3.
  • Pretending each piece is unique, any piece can be added to a peg, giving at most 12 + (2 · 16) + (2 · 2) + (2 · 2 · 2) = 56 choices per peg...

Blurred answer
Students have asked these similar questions
On a chess board of r rows and c columns there is a lone white rook surrounded by a group of opponent's black knights. Each knight attacks 8 squares as in a typical chess game, which are shown in the figure - the knight on the red square attacks the 8 squares with a red dot. The rook can move horizontally and vertically by any number of squares. The rook can safely pass through an empty square that is attacked by a knight, but it must move to a square that is not attacked by any knight. The rook cannot jump over a knight while moving. If the rook moves to a square that contains a knight, it may capture it and remove it from the board. The black knights. never move. Can the rook eventually safely move to the designated target square? The figure illustrates how the white rook can move to the blue target square at the top-right corner in the first sample case. The rook captures one black knight at the bottom-right of the board on its way. Rok nd kight lcoes by Chunen Input The first line…
A frieze pattern is a decoration made from repeated copies of a basic unit, arranged in a row. Figure 1 shows two examples from France in about 1820. Figure 1 Example friezes a.Provide a decomposition of the problem of drawing a frieze pattern, assuming for the moment that the basic unit is repeated just 7 times. At this stage you are not trying to produce a solution, just break the problem down into smaller parts. We are looking for a decomposition that could apply to any frieze, so you should for now ignore the details of how the basic unit will be drawn. You will need to use a loop. (4 marks) In the remainder of this question, you will design and implement a program to draw the particular frieze shown in Figure 2. Figure 2 The frieze pattern for this question In this frieze the length of each horizontal and vertical segment is 25. b.Next refine your decomposition, adding more detail so that it becomes an algorithm. This is not yet a program, so you should write the…
Consider a scenario in which you are presented with a data set of length K. Write a simple recursive algorithm to choose all possible pairs of elements in the set. Assess the computational complexity and explain your calculations.
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education