Question: table [ [ a 1 , a 2 , a 3 , a 5 ] , [ b 1 , b 2 , b

\table[[a1,a2,a3,a5],[b1,b2,b3,b4],[c1,c2,c3,c4],[d1,d2,d3,d4],[e1,e2,e3,e4]]
Figure 1
Question 1[4 pts]: Figure 1 shows a robot navigation field, where the green square (c4) is the robot, and red square (d1) is the goal. The shade squares (such as b2, c2, 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 a1, 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 al and a2 are sibling nodes, a1 will be dequeued first (because "1" has a lower digit than "2"). Node expanded/visited does not need to be revisited.
Use Best First Search to find path from c4 to d1(Using Manhattan distance as the
,heuristic function)
,- Report nodes in the fringe (including their f(N) values) in the orders they
,,are included in the fringe. [0.5 pt]
,,Report the order of the nodes being expanded. [1 pt]
,,Report the final path from c4 to d1.[0.5 pt]
,Use A* to find path from c4 to d1(Using Manhattan distance as the heuristic
,function).
,- Report nodes in the fringe (including their f(N) values) in the orders they
,,are included in the fringe. 0.5pt
,,Report the order of the nodes being expanded. [1 pt]
,,Report the final path from c4 to d1.[0.5 pt]
\ table [ [ a 1 , a 2 , a 3 , a 5 ] , [ b 1 , b 2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!