Module Shortest path

Shortest path

**Frequency: 8/10** In unweighted graph, we can use BFS to find shortest path. This module covers problems involve in finding shortest path on weighted graph, as well as other applications of these shortest path algorithms in some non-graph-related problems.

Resources

- [CP Algorithms: Dijkstra](https://cp-algorithms.com/graph/dijkstra.html) - [CP Algorithms: Bellman-Ford](https://cp-algorithms.com/graph/bellman_ford.html) - [CP Algorithms: Floyd-Warshall Algorithm](https://cp-algorithms.com/graph/all-pair-shortest-path-floyd-warshall.html)

Problems

Shortest path 606 / 639 1000
Delete edge 440 / 486 1100
3D path 239 / 256 1100
Number of shortest paths 393 / 413 1200
Double edge 244 / 320 1300
Second shortest path 271 / 309 1400
Bye bye maximum edge 274 / 304 1500
Boardgame 205 / 233 1500
Teleport 162 / 165 1500
? 115 / 146 1600
Math 161 / 194 1700
Festival 3 148 / 161 1700
Arbitrage 122 / 142 1700
Festival 4 110 / 115 1800
String construction 58 / 71 1800
Bye bye maximum edge 2 31 / 45 1900
Elevator 95 / 116 2000
Holiday 21 / 22 2100
Fortress defense 16 / 29 2200