Question

LGhemri Fall2018 3) Search Strategies: Drtmn Consider the map above. You are starting from Boynton Labs on the right and you want to go to the GROVES 1. 2. 3. WEAPONS ANNEX. Going to the city of ALDERWOOD after leaving the lab: Draw your scarch space using the breadth first search strategy. Find the number of nodes you will have to visit in order to get to your destination, list them. Draw your search space using a depth first search strategy. Find the number of nodes you will have to visit in order to get to your destination, list them. Which search strategy gives the smallest number of nodes visited before reaching your
media%2Fab8%2Fab890a71-c8f6-4cc1-9957-65
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answering only the first question since there are multiple questions. Please check the names of the places since the image is blurred.

3) Search Strategies:

1. Using BFS we will explore one descendent layer at a time. First we will explore all the cities that are children of the node Boynton Labs and so on. So using BFS the visited nodes will be as Boynton Labs -> City of Alderwood -> Prado Cherries and Apples -> Rodriguez Apples -> Kazuhiri Apples and Grapes -> Dorfman Aspergus -> Gorves Weapons Annex. Hence the number of nodes visited is 7.

2. Using DFS we will move to the deepest layer and traceback when there is no more descndent and so on. From Boynton Labs first we will explore the city, City of Alderwood which is a must as per the question. And then go to its leftmost child, i.e., US Gov and so on. Therefore using DFS the visited nodes will be as Boynton Labs -> City of Alderwood -> Prado Cherries and Apples -> US Gov -> Rodriguez Apples -> Kazuhiri Apples and Grapes -> Dorfman Aspergus -> Gorves Weapons Annex. Hence the number of nodes visited is 8.

3. BFS provides the smallest number of nodes visited before reaching the destination.

Add a comment
Know the answer?
Add Answer to:
LGhemri Fall2018 3) Search Strategies: Drtmn Consider the map above. You are starting from Boynton Labs...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT