Beam Search is a best-first search algorithm that maintains only a fixed number, k (the beam width), of the most promising nodes at each level of the search tree. Unlike breadth-first search, which expands all nodes at a given depth, Beam Search prunes less promising branches, significantly reducing memory and computational cost. It is not guaranteed to find an optimal solution, as its performance depends heavily on the quality of the heuristic function used to evaluate nodes.
