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 207 / 217 1000
Delete edge 152 / 183 1100
3D path 68 / 75 1100
Number of shortest paths 134 / 143 1200
Double edge 73 / 107 1300
Second shortest path 80 / 90 1400
Bye bye maximum edge 91 / 105 1500
Boardgame 63 / 80 1500
Teleport 40 / 43 1500
? 34 / 48 1600
Math 52 / 63 1700
Festival 3 54 / 59 1700
Arbitrage 38 / 45 1700
Festival 4 38 / 40 1800
String construction 16 / 19 1800
Elevator 46 / 50 2000