Chapter 2: Networks and graphs
Networks as models of connection — vertices, edges, weights — and the graphs, matrices and algorithms used to reason about them.
The chapter problem
Wiring the new building. You will connect a set of rooms with the least total length of cable, then find the shortest route between two of them. By the end of the chapter you can say which algorithm answers which question.
Where it is used: Transport, delivery routes, cabling, broadband and utility networks.
Your turn to connect it: Which journey you take, or which network reaches your area, is decided by a problem like this one.
Sections
- 2.1 Networks and their terminology — tier O · refs S2
- 2.2 Connected, disconnected, directed and undirected graphs — tier O · refs S2
- 2.3 Representing a network: adjacency matrices — tier O · refs S2
- 2.4 Matrix algebra and the product of adjacency matrices — tier O · refs S2
- 2.5 Trees and spanning trees — tier O · refs S2
- 2.6 Minimum spanning trees: Kruskal's algorithm — tier O · refs S2
- 2.7 Minimum spanning trees: Prim's algorithm — tier O · refs S2
- 2.8 Shortest paths and Dijkstra's algorithm — tier O · refs S2
- 2.9 Multi-stage problems and dynamic programming — tier O · refs S2
- 2.10 Bellman's principle of optimality — tier O · refs S2
- 2.11 Comparing the algorithms and choosing one — tier H · refs S2