Beam search (decoding)
Beam search is a heuristic search algorithm widely used in decoding sequences in artificial intelligence and natural language processing. It balances between breadth-first and greedy search by maintaining a fixed number of candidate sequences, optimizing for both efficiency and accuracy.