Mind · Strategy

BeamSearch

Width-limited heuristic search

Definition

Mechanism

A heuristic search algorithm that explores a graph by expanding the most promising SolverNodes in a limited set (the beam). It manages a Queue of fixed size 'k'. At each step, it generates all successors of all nodes in the beam, Ranks them, and Selects the top 'k' for the next iteration.

Invariants

  1. Breadth Constraint: Active nodes never exceed Beam Width.
  2. Optimality: The K nodes selected are the highest ranked.

Risks

Failure modes

None stated.

Relationships

Builds on

References

Infrastructure

Queue

Ordered container with FIFO/LIFO/priority discipline and explicit dequeue semantics

Infrastructure

Rank

Order items by score

Infrastructure

Select

Generic selection of items from a set based on criteria

Society

SolverNode

Stateful container for a running solver instance

Nothing in this library builds on this pattern yet.

Reference

Parameters

beam_width Integer, [1, 100]
Number of parallel paths to keep

Identity

Ref
BeamSearch#3457
Sema ID
sema:BeamSearch#mh:SHA-256:345791c047f0e97dbef89d2d16e6cd67634768cebe523cef44e54a6eacec622b
Ring
1
Tier
1
Updated
2026-11-11
Supersedes
  • sema:BeamSearch#mh:SHA-256:d2fb9185247c76aa1fd102c5dd6d8a425fa2de767fe9009bb50b71c6ead3d4a1
  • sema:BeamSearch#mh:SHA-256:5a3460aa9dc10ab22ddf87f740cb0dc1166e96d7d07fd31bf312cf8b35b1e559
  • sema:BeamSearch#mh:SHA-256:70d31a67347fab104678e9d6038acfd4b42b5c46967c71d6090b443b0a27fd14
  • sema:BeamSearch#mh:SHA-256:fc0a0d78a67aeda031b4316da9d81b9918064f81e06ceeb198ebfd30976e9b0b
  • sema:BeamSearch#mh:SHA-256:899fde8c1b5bd77173ee54438460d1281eeb34cf54f3033308e8f4a709828815
  • sema:BeamSearch#mh:SHA-256:d80bc09f086873a86e84d200f78ccc9bcb3bd111a7901f20719b050e546bb7fc