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 462 / 494 1000
Delete edge 333 / 372 1100
3D path 165 / 176 1100
Number of shortest paths 302 / 319 1200
Double edge 157 / 230 1300
Second shortest path 194 / 227 1400
Bye bye maximum edge 208 / 232 1500
Boardgame 143 / 164 1500
Teleport 106 / 110 1500
? 77 / 104 1600
Math 108 / 141 1700
Festival 3 108 / 117 1700
Arbitrage 90 / 106 1700
Festival 4 82 / 85 1800
String construction 41 / 51 1800
Elevator 82 / 100 2000
Fortress defense 6 / 13 2200