BAlong one straight row every estimate ties, so it can settle them all, as Dijkstra's method does.
CThe end settled second skips the road, so each road is looked along at most once.
DThat is a line's count. Settling every place here weighs up more, from 3 places on.
4question 4
The search runs from the first place after the semicolon to the second. On which map does it weigh up the most places?
the answer, and why
the answer is A
Settling A writes an estimate at all 3 others, and F's 30 is the biggest, so 1, then 3, 2 and 1, which is 7.
if you chose another
BA line of 4 weighs up one place each round, 4.
CH is on another part of the map, so the run ends after A and B, 2.
DB has the smallest estimate and is the place to reach, so the run stops after A, then B and E, 3.
pen and paper
5question 5about 8 minutes
The map has roads A-B 35, A-E 10, E-F 10, B-F 10, B-C 10 and F-G 30. The search runs from A to C. The lines left to C are A 20, B 10, E 23, F 15 and G 10.
Write each place settled and its estimate, in order.
Which estimate is written and later beaten?
Which place is never settled, and what is the shortest way?
a hint
Write every estimate down, and cross it out when a smaller one comes.
a worked answer
In the order settled: A 20, E 33, F 35, B 40, C 40. B's 45 becomes 40. G holds 60 and is never settled. The shortest way is A, E, F, B, C, which is 10 + 10 + 10 + 10, so 40.
Four roads, A-E 10, E-F 11, A-B 12 and B-F 3, and the search runs from A to F. The lines left to F are A 15, B 10 and E 10.
What does the search say F is, and what is the shortest?
Where does the line left say too much?
Make B-F 10 instead. What does the search say F is now, and is it right?
a hint
Settle the smallest estimate each round, and stop once F is settled.
a worked answer
Settling A writes E 10 + 10 and B 12 + 10. E, at 20, is settled, and it writes F 21 + 0. F's 21 is below B's 22, so F is settled at 21, and the run stops. The shortest is A, B, F, 12 + 3, so 15. At B the line left says 10 with only 3 left. With B-F at 10, it still says 21, and it is right, as A, B, F is now 22. The lines below are the learn page's question 6, with other numbers.
The four roads. B-F is shorter than its straight line, so the watch page's box would refuse it.
Question 6: why must the line left never say too much?5 of 5 shown
1the move: a road shorter than its line
the line:
From A to F. Drawn heavy, the shortest way. The lines left to F are A 15, B 10 and E 10.
why it is allowed: The watch page's box refuses this road, and this map shows why. At B the line left says 10, when only 2 is left. So it says too much.
2the move: the real way looks worse
the line:
why it is allowed: Settling A writes E 10 + 10 and B 11 + 10. E is smaller, so it is settled next, and it writes F 20 + 0.
guess it, then
3the move: the way through the short road
the line:
why it is allowed: is the way A, B, F. It is 11 up to B, then , the road left. Here is 2.
guess it, then
4the move: wrong, with no warning
the line:
why it is allowed: F's 20 is below B's 21, so F is settled, and the run stops. By line 3, the way through B is 13. The answer looks like any other, and nothing says it is wrong.
guess it, then
5the move: which line failed
the line:
why it is allowed: Going on from B to F, the estimate falls by 8, against question 4. Question 5's line 6 needs it never to fall.
guess it, then
try it with a small : at , line 3 gives , which you can work out by hand