A second-year CSE student in Dhaka has her course chart pinned above the desk. Programming comes before Data Structures, and Data Structures before Algorithms. Maths comes before Discrete Maths, which is also needed for Algorithms. She asks a simple question: in what order can I take all of these? There is no single right answer, and yet a computer settles it in a blink, even for a university with thousands of courses and tens of thousands of prerequisite rules. The same question lives inside every make command, every spreadsheet that recalculates a cell after the cells it depends on, every bank's release plan where one task waits for another, and, as you will see in the next subject, the order in which a database creates tables that point at each other.
The last chapter was a long walk through search trees. Backtracking and branch and bound are what we reach for when a problem has no clever shortcut: try, fail, undo, try again. This chapter is the happy opposite. We come back to graphs, where a handful of problems that look just as tangled turn out to have exact, fast methods that never guess. One pass over the graph, and the answer is final.
There are three such stories here. The first is the course chart: arrows that say "first this, then that", and how to list everything so that no arrow points backwards. The second is Old Dhaka, where many lanes are one-way: from which lanes can a rickshaw also come back, and which groups of lanes are closed worlds of their own? The third is a Palli Bidyut engineer who must link villages with the least cable: why is it safe to buy the cheapest line first, and how does she know, in an instant, that two villages are already connected?