How IDA* deepens an f-cost bound

Short answer: IDA* applies iterative deepening to A*. Each pass is a depth-first search that refuses to step onto a vertex whose f = g + h exceeds the current bound. The next bound is the smallest f that was blocked. With an admissible heuristic, the first time the…

How Hopcroft-Karp phases bipartite matching

Short answer: Hopcroft-Karp computes a maximum matching in a bipartite graph in phases. Each phase breadth-first searches for the shortest augmenting paths and then depth-first searches a maximal set of vertex-disjoint paths of that length. The matching grows by all of them at once. There are O(√V) phases and…

How GJK tests two convex shapes for overlap

Short answer: The Gilbert-Johnson-Keerthi algorithm decides whether two convex sets intersect by chasing a simplex inside their Minkowski difference. The difference contains the origin exactly when the shapes touch or overlap. Each iteration asks a support function for the farthest point in a chosen direction, adds that point to…

How Gale-Shapley builds a stable matching

Short answer: The Gale-Shapley deferred-acceptance algorithm builds a stable matching of two sides that have ranked each other. One side proposes, in preference order, and the other side keeps the better proposal so far and rejects the rest. A rejected proposer asks the next choice. The result is a…

How Ford-Fulkerson augments residual paths

Short answer: Ford-Fulkerson sends flow along any path from source to sink in the residual graph, then updates residual capacities in both directions. A residual edge backward carries the option to undo flow. When no residual path remains, the flow is maximum, and the reachable set from the source…