Question: 3 . [ 5 pts ] : Consider the following graph. Do a Branch and Bound Depth First Search on this graph, where the depth
pts: Consider the following graph. Do a Branch and Bound Depth First Search on this graph, where the depth bound is not measured in terms of number of edges as in the inclass exercises but in terms of the total distance to the nearest goal node as measured by edge lengths. I have set up the graph so that there all edges outgoing from a given node have different costs, so there are no ties to be broken.
List the nodes you visit in order to find the nearest goal node, showing your return paths.
Solution:
Appendix A: Sample IDDFS with edge lengths. This page shows the solution I am looking for, and the next page explains it
Suppose the start node is S and the goal node is T
The initial depth bound and the depth bound increment are both
somun:;
st iteration, depth bound :SB
nd iteration, depth bound : SBCBEBSAS
rd iteration, depth bound :SBCDCBEBSADASth iteration, depth bound :SBCDT done Explanation of solution.
Solution:
First iteration. denth bound : SB
Explanation:
I go SB and stop because I reached the depth bound. Failure. I can't go to A because it's
further away than the depth bound.
Second iteration, depth bound : SBCBEBSA
Explanation:
I go SBC before hitting the depth bound, then back to B then go to E before hitting the
depth bound then back to B then back to S Then I go SA before hitting the depth bound. I
could go to B but I already have a shorter path to B so I don't go there again. Failure. Third iteration, depth bound : SBCDCBEBSADE
Expianazion:
I go SBCD before hitting the depth bound, then back to C then back to B then go to E
before hitting the depth bound then back to B then back to S Then I go SA From A I don't
go to B because I already have a shorter path to B and I don't go to C because I have a shorter
path to C So I go to D before I reach the depth bound. I don't go to E from D because there is
a shortest path to E already.
Fourth iteration, depth bound :SBCDT
Expianation:
I go SBCDT before hitting the depth bound, so I am done.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
