Consider the problem of finding a path in the grid shown below from the position S to the position G. The agent can move on the grid horizontally and vertically, one square at a time (each step has a cost of one). No step may be made into a forbidden crossed area. G S Figure 1: Search Grid

Operations Research : Applications and Algorithms
4th Edition
ISBN:9780534380588
Author:Wayne L. Winston
Publisher:Wayne L. Winston
Chapter12: Review Of Calculus And Probability
Section12.5: Random Variables, Mean, Variance, And Covariance
Problem 5P
icon
Related questions
Question

Consider the problem of finding a path in the grid shown below from the position S to the
position G. The agent can move on the grid horizontally and vertically, one square at a
time (each step has a cost of one). No step may be made into a forbidden crossed area. In
the case of ties, break it using up, left, right, and down.
(a) Draw the search tree in a greedy search. Manhattan distance should be used as the
heuristic function. That is, h(n) for any node n is the Manhattan distance from n
to G. The Manhattan distance between two points is the distance in the x-direction
plus the distance in the y-direction. It corresponds to the distance traveled along city
streets arranged in a grid. For example, the Manhattan distance between G and S is
4. What is the path that is found by the greedy search?
(b) Draw the search tree in an A∗
search. Manhattan distance should be used as the 


Consider the problem of finding a path in the grid shown below from the position S to the
position G. The agent can move on the grid horizontally and vertically, one square at a
time (each step has a cost of one). No step may be made into a forbidden crossed area.
G
S
Figure 1: Search Grid
Transcribed Image Text:Consider the problem of finding a path in the grid shown below from the position S to the position G. The agent can move on the grid horizontally and vertically, one square at a time (each step has a cost of one). No step may be made into a forbidden crossed area. G S Figure 1: Search Grid
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Operations Research : Applications and Algorithms
Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
New Perspectives on HTML5, CSS3, and JavaScript
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:
9781305503922
Author:
Patrick M. Carey
Publisher:
Cengage Learning
LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
Computer Science
ISBN:
9781337569798
Author:
ECKERT
Publisher:
CENGAGE L
Fundamentals of Information Systems
Fundamentals of Information Systems
Computer Science
ISBN:
9781305082168
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning