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 629 / 664 1000
Delete edge 450 / 500 1100
3D path 246 / 261 1100
Number of shortest paths 403 / 424 1200
Double edge 251 / 326 1300
Second shortest path 274 / 313 1400
Bye bye maximum edge 274 / 305 1500
Boardgame 208 / 235 1500
Teleport 164 / 167 1500
? 118 / 148 1600
Math 164 / 198 1700
Festival 3 152 / 166 1700
Arbitrage 123 / 143 1700
Festival 4 111 / 116 1800
String construction 59 / 72 1800
Bye bye maximum edge 2 34 / 46 1900
Elevator 96 / 117 2000
Holiday 22 / 23 2100
Fortress defense 17 / 29 2200