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 751 / 790 1000
Delete edge 548 / 603 1100
3D path 301 / 319 1100
Number of shortest paths 494 / 517 1200
Double edge 313 / 389 1300
Second shortest path 344 / 385 1400
Bye bye maximum edge 336 / 373 1500
Boardgame 253 / 287 1500
Teleport 213 / 218 1500
? 145 / 180 1600
Math 206 / 242 1700
Festival 3 187 / 203 1700
Arbitrage 161 / 182 1700
Festival 4 142 / 149 1800
String construction 74 / 87 1800
Bye bye maximum edge 2 57 / 73 1900
Elevator 110 / 130 2000
Holiday 33 / 35 2100
Fortress defense 23 / 41 2200