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 352 / 375 1000
Delete edge 258 / 291 1100
3D path 127 / 138 1100
Number of shortest paths 233 / 249 1200
Double edge 131 / 184 1300
Second shortest path 141 / 165 1400
Bye bye maximum edge 160 / 178 1500
Boardgame 111 / 127 1500
Teleport 79 / 80 1500
? 63 / 87 1600
Math 91 / 120 1700
Festival 3 94 / 102 1700
Arbitrage 70 / 78 1700
Festival 4 69 / 72 1800
String construction 30 / 38 1800
Elevator 66 / 80 2000
Fortress defense 2 / 3 2200