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 817 / 857 1000
Delete edge 589 / 653 1100
3D path 319 / 337 1100
Number of shortest paths 527 / 552 1200
Double edge 330 / 410 1300
Second shortest path 360 / 402 1400
Bye bye maximum edge 358 / 397 1500
Boardgame 268 / 303 1500
Teleport 226 / 230 1500
? 150 / 186 1600
Math 219 / 255 1700
Festival 3 219 / 237 1700
Arbitrage 172 / 193 1700
Festival 4 148 / 155 1800
String construction 83 / 97 1800
Bye bye maximum edge 2 63 / 82 1900
Elevator 113 / 135 2000
Holiday 47 / 49 2100
Fortress defense 23 / 41 2200