Concepts5
⚙️AlgorithmIntermediate
Bidirectional BFS (Meet in the Middle Search)
Bidirectional BFS searches forward from the start and backward from the goal to meet in the middle, drastically reducing explored states.
#bidirectional bfs#meet in the middle#two-ended search+11
⚙️AlgorithmIntermediate
Floyd-Warshall Algorithm
Floyd–Warshall computes the shortest distances between all pairs of vertices in O(n^3) time using dynamic programming.
#floyd-warshall#all pairs shortest path#apsp+12
⚙️AlgorithmIntermediate
Dijkstra's Algorithm
Dijkstra's algorithm finds shortest path distances from one source to all vertices when all edge weights are non-negative.
#dijkstra#shortest path#greedy+11
⚙️AlgorithmIntermediate
Bellman-Ford Algorithm
Bellman–Ford finds single-source shortest paths even when some edge weights are negative.
#bellman-ford#single-source shortest paths#negative weights+12
⚙️AlgorithmIntermediate
0-1 BFS
0-1 BFS is a shortest path algorithm specialized for graphs whose edge weights are only 0 or 1.
#0-1 bfs#binary weights#shortest path+12