guess the next step: Breadth-first search
Before each step plays, guess what it does. The page then shows the step as the run takes it and says why, the same sentence the watch page says there.
Step 2 of 8
Question 1 of 4
Step 2 of 8
Step 3 of 8
Step 4 of 8
Step 5 of 8
Step 6 of 8
Step 7 of 8
Question 1 of 4
Question 1 of 4
Right.
You guessed: The place along this road is new, so write how many roads it is from the start and put it in the queue.
What the run did:
B has not been found yet, so it is one road from the start, one more than A. Write that at B, and put B at the back of the queue.
Question 1 of 4
Not this time.
You guessed: The place along this road is found already, so pass it by.
What the run did:
B has not been found yet, so it is one road from the start, one more than A. Write that at B, and put B at the back of the queue.
Question 1 of 4
Not this time.
You guessed: Every road from here has been looked along, so this place is done.
What the run did:
B has not been found yet, so it is one road from the start, one more than A. Write that at B, and put B at the back of the queue.
Question 2 of 4
Question 2 of 4
Not this time.
You guessed: The place along this road is new, so write how many roads it is from the start and put it in the queue.
What the run did:
Every road from A has been looked along, so A is done.
Question 2 of 4
Not this time.
You guessed: The place along this road is found already, so pass it by.
What the run did:
Every road from A has been looked along, so A is done.
Question 2 of 4
Right.
You guessed: Every road from here has been looked along, so this place is done.
What the run did:
Every road from A has been looked along, so A is done.
Question 3 of 4
Question 3 of 4
Not this time.
You guessed: The place along this road is new, so write how many roads it is from the start and put it in the queue.
What the run did:
A has been found already, by no more roads than going through B would take, so pass it by.
Question 3 of 4
Right.
You guessed: The place along this road is found already, so pass it by.
What the run did:
A has been found already, by no more roads than going through B would take, so pass it by.
Question 3 of 4
Not this time.
You guessed: Every road from here has been looked along, so this place is done.
What the run did:
A has been found already, by no more roads than going through B would take, so pass it by.
Question 4 of 4
Question 4 of 4
Not this time.
You guessed: The place along this road is new, so write how many roads it is from the start and put it in the queue.
What the run did:
Every road from B has been looked along, so B is done.
That is every question on this run: 0 of 4 right.
Question 4 of 4
Not this time.
You guessed: The place along this road is found already, so pass it by.
What the run did:
Every road from B has been looked along, so B is done.
That is every question on this run: 0 of 4 right.
Question 4 of 4
Right.
You guessed: Every road from here has been looked along, so this place is done.
What the run did:
Every road from B has been looked along, so B is done.
That is every question on this run: 1 of 4 right.