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 317 / 338 1000
Delete edge 232 / 267 1100
3D path 117 / 126 1100
Number of shortest paths 217 / 230 1200
Double edge 121 / 169 1300
Second shortest path 128 / 153 1400
Bye bye maximum edge 145 / 163 1500
Boardgame 106 / 122 1500
Teleport 70 / 73 1500
? 60 / 82 1600
Math 84 / 112 1700
Festival 3 88 / 97 1700
Arbitrage 62 / 70 1700
Festival 4 65 / 68 1800
String construction 27 / 34 1800
Elevator 61 / 75 2000
Fortress defense 0 / 0 2100