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 447 / 480 1000
Delete edge 326 / 365 1100
3D path 162 / 173 1100
Number of shortest paths 299 / 316 1200
Double edge 153 / 226 1300
Second shortest path 190 / 223 1400
Bye bye maximum edge 203 / 226 1500
Boardgame 137 / 158 1500
Teleport 102 / 106 1500
? 74 / 101 1600
Math 106 / 139 1700
Festival 3 104 / 113 1700
Arbitrage 87 / 103 1700
Festival 4 79 / 82 1800
String construction 38 / 48 1800
Elevator 77 / 95 2000
Fortress defense 6 / 12 2200