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 524 / 555 1000
Delete edge 374 / 418 1100
3D path 196 / 210 1100
Number of shortest paths 335 / 354 1200
Double edge 192 / 269 1300
Second shortest path 217 / 252 1400
Bye bye maximum edge 225 / 254 1500
Boardgame 162 / 187 1500
Teleport 122 / 126 1500
? 94 / 123 1600
Math 135 / 167 1700
Festival 3 125 / 136 1700
Arbitrage 103 / 121 1700
Festival 4 95 / 98 1800
String construction 49 / 60 1800
Bye bye maximum edge 2 18 / 23 1900
Elevator 88 / 107 2000
Holiday 11 / 11 2100
Fortress defense 11 / 20 2200