subject

Assume you use breadth-first search to actually find your way out of a maze (consisting of rooms and hallways, which represent the vertices and edges, respectively). One room is the start room, and one room is the exit room. We want to count how many hallways you need to walk down. If you walk down the same hallway twice that counts as two. Each direction counts once, so back-and-forth across a hallway counts as two. The first time you visit a room must be in the order of breadth-first search. Other than that you can be clever. Required:
a. Assume the maze is one long path of n rooms where you start on one end and the exit is at the other end. How many hallways do you walk down? Justify.
b. Assume the maze consists of a start room with n − 1 other rooms directly connected to it. (In other words it is a star graph.) Assume the last room you visit is the exit room. How many hallways do you walk down? Justify.
c. Assume the maze is a complete binary tree with n = 2k − 1 rooms. Assume that the root is the start room. To keep things simple, assume the root is also the exit room but onlyafter you have visited all of the other rooms. How many hallways do you walk down? Justify.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 23:20
How can you tell if someone sent you a text message to your email instead of a email
Answers: 1
question
Computers and Technology, 23.06.2019 21:00
Alcohol’s affects on the cornea and lens of the eye make it more difficult
Answers: 1
question
Computers and Technology, 23.06.2019 22:50
An environmental protection agency study of 12 automobiles revealed a correlation of 0.47 between engine size and emissions. at 0.01 significance level, can we conclude that there is a positive association between the variables? what is the p value? interpret.
Answers: 2
question
Computers and Technology, 24.06.2019 03:30
It is not necessary to develop strategies to separate good information and bad information on the internet. true or false
Answers: 1
You know the right answer?
Assume you use breadth-first search to actually find your way out of a maze (consisting of rooms and...
Questions
question
Mathematics, 08.04.2021 21:00
question
Biology, 08.04.2021 21:00
question
Mathematics, 08.04.2021 21:00
question
Mathematics, 08.04.2021 21:00
Questions on the website: 13722361