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 757 / 795 1000
Delete edge 551 / 608 1100
3D path 304 / 322 1100
Number of shortest paths 496 / 519 1200
Double edge 317 / 395 1300
Second shortest path 346 / 388 1400
Bye bye maximum edge 340 / 377 1500
Boardgame 256 / 290 1500
Teleport 215 / 220 1500
? 146 / 181 1600
Math 207 / 243 1700
Festival 3 188 / 204 1700
Arbitrage 161 / 182 1700
Festival 4 143 / 150 1800
String construction 75 / 87 1800
Bye bye maximum edge 2 59 / 76 1900
Elevator 110 / 130 2000
Holiday 33 / 35 2100
Fortress defense 23 / 41 2200