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 824 / 865 1000
Delete edge 592 / 658 1100
3D path 319 / 338 1100
Number of shortest paths 531 / 556 1200
Double edge 334 / 413 1300
Second shortest path 363 / 406 1400
Bye bye maximum edge 361 / 400 1500
Boardgame 269 / 304 1500
Teleport 229 / 233 1500
? 151 / 187 1600
Math 221 / 257 1700
Festival 3 221 / 239 1700
Arbitrage 173 / 194 1700
Festival 4 148 / 156 1800
String construction 83 / 97 1800
Bye bye maximum edge 2 65 / 83 1900
Elevator 114 / 136 2000
Holiday 47 / 49 2100
Fortress defense 23 / 41 2200