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 802 / 842 1000
Delete edge 574 / 637 1100
3D path 314 / 332 1100
Number of shortest paths 516 / 540 1200
Double edge 327 / 406 1300
Second shortest path 357 / 399 1400
Bye bye maximum edge 357 / 395 1500
Boardgame 266 / 301 1500
Teleport 224 / 228 1500
? 150 / 186 1600
Math 219 / 255 1700
Festival 3 216 / 236 1700
Arbitrage 171 / 192 1700
Festival 4 146 / 153 1800
String construction 80 / 94 1800
Bye bye maximum edge 2 63 / 81 1900
Elevator 112 / 133 2000
Holiday 44 / 46 2100
Fortress defense 23 / 41 2200