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
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](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F6f57061f-7229-4da2-8b1b-aab440849284%2Fd157e6f0-91ac-4f9e-9226-f29e2cf53b5d%2Fckr79mi_processed.png&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 2 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Operations Research : Applications and Algorithms](https://www.bartleby.com/isbn_cover_images/9780534380588/9780534380588_smallCoverImage.gif)
![C++ Programming: From Problem Analysis to Program…](https://www.bartleby.com/isbn_cover_images/9781337102087/9781337102087_smallCoverImage.gif)
![C++ for Engineers and Scientists](https://www.bartleby.com/isbn_cover_images/9781133187844/9781133187844_smallCoverImage.gif)
![Operations Research : Applications and Algorithms](https://www.bartleby.com/isbn_cover_images/9780534380588/9780534380588_smallCoverImage.gif)
![C++ Programming: From Problem Analysis to Program…](https://www.bartleby.com/isbn_cover_images/9781337102087/9781337102087_smallCoverImage.gif)
![C++ for Engineers and Scientists](https://www.bartleby.com/isbn_cover_images/9781133187844/9781133187844_smallCoverImage.gif)
![New Perspectives on HTML5, CSS3, and JavaScript](https://www.bartleby.com/isbn_cover_images/9781305503922/9781305503922_smallCoverImage.gif)
![LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.](https://www.bartleby.com/isbn_cover_images/9781337569798/9781337569798_smallCoverImage.gif)
![Fundamentals of Information Systems](https://www.bartleby.com/isbn_cover_images/9781305082168/9781305082168_smallCoverImage.gif)