Skip to content
← All questions

What is the final shortest distance from home to university in the worked example?

The final shortest distance from home to university is 7. This value is determined after all smaller uncircled candidates (specifically vertices E with label 4 and B with label 6) have been processed. The candidate labels generated from these vertices (9 from E and 8 from B) were both larger than 7 and were crossed out. Once no smaller uncircled vertex remained, the label 7 at university was circled as the final shortest distance.

Conditions

  • The algorithm has processed all vertices with tentative labels smaller than 7.
  • The label 7 at university is the smallest remaining uncircled label.
  • The graph edge weights are fixed as shown in the example.

Reasoning, step by step

  1. Process vertex E (label 4): Calculate candidate for university as 4+5=94 + 5 = 9. Cross out 9 because 9>79 > 7.
  2. Process vertex B (label 6): Calculate candidate for university as 6+2=86 + 2 = 8. Cross out 8 because 8>78 > 7.
  3. Check for remaining uncircled vertices with labels < 7. None exist.
  4. Circle the label 7 at university as the final shortest distance.
  5. State the result: The shortest distance from home to university is 7.

Example

The video states: "And now finally we've got this seven here is the smallest uncircled vertex ... that tells us that the shortest distance from home to university is seven." The number 7 is circled at the university vertex.

Common misconceptions

  • Assuming the first candidate label seen at the destination is the final answer.
  • Forgetting to process all smaller uncircled vertices before finalizing the destination.
  • Confusing the tentative label with the final settled distance.

Watch the explanation

Explore next

Answers are generated from source material and independently checked. Consult the original video or creator if something is unclear.