Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Figure 2 DFS F r i n g e : N o d e v i s i t e d e x p a

Figure 2 DFS
Fringe:Nodevisitedexpanded???????????????????????????????????????????????????????????? BFS
Fringe:Nodevisitedexpanded???????????????????????????????????????????????????????? Best First Search
Fringe:f(N)Nodevisitedexpanded????????????????????????????????????????????????????????=h(N)A* Search
Question 2[6 pts] Figure 2 shows a robot navigation field, where the green square (b7) is the robot, and red square (d2) is the goal. The shad squares (such as c2, d3 etc.) are obstacles. The robot is not allowed to move in diagonal line. Nodes are coded using an alphabet letter followed by a digit (such as b1, b2 etc.). When two sibling nodes are inserted into fringe (queue), use deque order to favor node with a lower alphabet and a lower digit. For example, if d1 and e2 are sibling nodes, d1 will be dequeued first (because d has a lower alphabetic order than e). If e1 and e2 are sibling nodes, e1 will be dequeued first (because 1 has a lower digit than 2). Node expanded/visited does not need to be revisited.
Use Depth First Search to find path from b7 to d2.
o Report nodes in the fringe in the orders they are included in the fringe. [0.5 pt]
o Report the order of the nodes being expanded. [0.5 pt]
o Report the final path from b7 to d2.[0.5 pt]
DFS
Fringe: Node visited/expanded
Use Breadth First Search to find path from b7 to d2.
o Report nodes in the fringe in the orders they are included in the fringe. [0.5 pt]
o Report the order of the nodes being expanded. [0.5 pt]
o Report the final path from b7 to d2.[0.5 pt]
BFS
Fringe: Node visited/expanded
Use Best First Search to find path from b7 to d2.(Using Manhattan distance as the heuristic function)
o Report nodes in the fringe (including their f(N) values) in the orders they are included in the fringe. [0.5 pt]
o Report the order of the nodes being expanded. [0.5 pt]
o Report the final path from b7 to d2.[0.5 pt]
Best First Search
Fringe: f(N)=h(N) Node visited/expanded
Use A* to find path from b7 to d2.(Using Manhattan distance as the heuristic function).
o Report nodes in the fringe (including their f(N) values) in the orders they are included in the fringe. [0.5 pt]
o Report the order of the nodes being expanded. [0.5 pt]
o Report the final path from b7 to d2.[0.5 pt]
A* Search\table[[e1,e2,e3,e4,e5,e6,e7,e8,e9],[d1,d2,d3,d4,d5,U6,d7,d8,d9],[c1,C2,C3,c4,c5,c6,c7,c8,cg],[b1,b2,b3,b4,b5,66,b7,b8,b9]]
Figure 2
Fringe: f(N)=g(N)+h(N) Node visited/expanded
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning Microsoft SQL Server 2012 Programming

Authors: Paul Atkinson, Robert Vieira

1st Edition

1118102282, 9781118102282

More Books

Students also viewed these Databases questions

Question

When do you think a hiring decision will be made?

Answered: 1 week ago