October 15, 2025

Wednesday of Week 8

Topics of the day

| Reading | Online | Questions | Assignments |

Suggested reading

Online references

Questions and exercises

  1. What problem does Dijkstra's algorithm solve? What kinds of graphs can/can't it be used on?
  2. Consider the graph to the right. Treating node H as the source or starting point, in what order would Dijkstra's algorithm visit the nodes? Why?
  3. Take one of the examples from the readings and show some aspect of it that isn't shown in the reading. For example, draw the graph for the one that doesn't show the drawing of the graph, or show the trace of values of one of the data structures for the ones that don't show those.
  4. In your preferred language (not necessarily C++ or Java), how does the built-in priority queue type know how to order its contents? (That is, how does it decide what has the highest priority?)

Assignments

Today

Upcoming