Beam search: Difference between revisions

Content deleted Content added
Yoderj (talk | contribs)
Mention LLMs as state of art for translation where beam search is often applied.
Undid revision 1188649871 by DMH223344 (talk) - please cite sources and be more specific - "backtracking algorithm" in what sense? Also note that this case is already discussed below ("With an infinite beam width ...")
Line 1:
{{short description|Heuristic search algorithm}}
 
In [[computer science]], '''beam search''' is a [[heuristic (computer science)|heuristic]] [[search algorithm]] that explores a graph by expanding the most promising node in a limited set. Beam search is an optimization of [[best-first search]] that reduces its memory requirements. Best-first search is a graph search which orders all partial solutions (states) according to a chosensome heuristic. But in beam search, only a predetermined number of best partial solutions are kept as candidates.<ref>{{Cite web|url=http://foldoc.org/index.cgi?query=beam+search&action=Search|title=FOLDOC - Computing Dictionary|website=foldoc.org|access-date=2016-04-11|archive-date=2020-01-25|archive-url=https://web.archive.org/web/20200125061837/http://foldoc.org/index.cgi?query=beam+search&action=Search|url-status=dead}}</ref> It is thus a [[greedy algorithm]]. Implemented with an unlimited set of candidates, beam search becomes a [[Backtracking|backtracking algorithm]].
 
The term "beam search" was coined by [[Raj Reddy]] of [[Carnegie Mellon University]] in 1977.<ref>{{Cite book |last=Defense Technical Information Center |url=http://archive.org/details/DTIC_ADA049288 |title=DTIC ADA049288: Speech Understanding Systems. Summary of Results of the Five-Year Research Effort at Carnegie-Mellon University |date=1977-08-01 |language=english}}</ref>