Overview
Beam Search expands candidate states level by level, pruning all but a fixed number of highest-scoring states.
Keeps only the best few partial solutions while exploring a large search space.
Compact metadata for implementation and discovery.
Beam Search expands candidate states level by level, pruning all but a fixed number of highest-scoring states.
Quick facts
Runtime and memory behavior at a glance.
Best
O(b * w)
Average
O(depth * b * w)
Worst
O(depth * b * w)
Space
O(w)
beam_next = top_k(expand(beam_current), k = beam_width)Keeps only the best-scoring expanded candidates.
Show a search tree where only the top few nodes survive at each depth.
A narrow beam is fast but can prune the globally best solution early.
What each reference supports for this entry.
Reference text for search, local search, beam search, and constraint-satisfaction backtracking.
Open sourceGood next jumps from the relationship graph, ranked for useful discovery.
Beam search is a width-limited search strategy derived from level-wise expansion.
Both use scores to prioritize candidate states.