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 541 / 571 1000
Delete edge 389 / 430 1100
3D path 214 / 228 1100
Number of shortest paths 350 / 369 1200
Double edge 206 / 284 1300
Second shortest path 231 / 270 1400
Bye bye maximum edge 240 / 269 1500
Boardgame 175 / 200 1500
Teleport 135 / 139 1500
? 102 / 132 1600
Math 143 / 175 1700
Festival 3 134 / 146 1700
Arbitrage 111 / 129 1700
Festival 4 100 / 105 1800
String construction 53 / 66 1800
Bye bye maximum edge 2 25 / 33 1900
Elevator 92 / 112 2000
Holiday 14 / 15 2100
Fortress defense 13 / 24 2200