Loading topic
dist and prev. Most of the time dist gets the attention, but a navigation app, a network router, or a game AI usually needs the route itself, not only its cost. This chapter shows how the prev dictionary encode6 min readdijkstra function with lazy deletion. You should also be comfortable reading Big-O bounds and Python dictionaries. The full correctness proof comes in a later chapter. Here we only need 6 min readdijkstra function from the implementation chapter, and know how a binary heap supports push and pop in logarithmic time. We use V for the number of vertices and E for the number of edges throughout.6 min read