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 806 / 846 1000
Delete edge 577 / 639 1100
3D path 315 / 333 1100
Number of shortest paths 518 / 542 1200
Double edge 328 / 407 1300
Second shortest path 358 / 400 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 218 / 237 1700
Arbitrage 171 / 192 1700
Festival 4 146 / 153 1800
String construction 83 / 97 1800
Bye bye maximum edge 2 63 / 81 1900
Elevator 112 / 133 2000
Holiday 44 / 46 2100
Fortress defense 23 / 41 2200