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 825 / 866 1000
Delete edge 592 / 658 1100
3D path 320 / 339 1100
Number of shortest paths 532 / 557 1200
Double edge 334 / 413 1300
Second shortest path 365 / 408 1400
Bye bye maximum edge 363 / 402 1500
Boardgame 272 / 307 1500
Teleport 231 / 235 1500
? 153 / 189 1600
Math 221 / 257 1700
Festival 3 222 / 240 1700
Arbitrage 173 / 194 1700
Festival 4 153 / 161 1800
String construction 83 / 97 1800
Bye bye maximum edge 2 68 / 86 1900
Elevator 116 / 138 2000
Holiday 49 / 51 2100
Fortress defense 23 / 41 2200