{
 "library": "bootstrap",
 "version": "0.11.0",
 "root": "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5",
 "license": null,
 "slug": "BeamSearch",
 "ref": "BeamSearch#3457",
 "hash": "sema:BeamSearch#mh:SHA-256:345791c047f0e97dbef89d2d16e6cd67634768cebe523cef44e54a6eacec622b",
 "stub": "3457",
 "layer": "Mind",
 "type": "Strategy",
 "summary": "Width-limited heuristic search",
 "mechanism": "A heuristic search algorithm that explores a graph by expanding the most promising SolverNode#f895s in a limited set (the beam). It manages a Queue#5689 of fixed size 'k'. At each step, it generates all successors of all nodes in the beam, Rank#67c6s them, and Select#decfs the top 'k' for the next iteration.",
 "invariants": [
  "Breadth Constraint: Active nodes never exceed Beam Width.",
  "Optimality: The K nodes selected are the highest ranked."
 ],
 "parameters": [
  {
   "name": "beam_width",
   "type": "Integer",
   "range": "[1, 100]",
   "description": "Number of parallel paths to keep"
  }
 ],
 "signature": [],
 "preconditions": [],
 "postconditions": [],
 "failure_modes": [],
 "domain": "",
 "caution": "",
 "sources": [],
 "name": "BeamSearch",
 "builds_on": [
  {
   "alias": "select",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Select",
   "ref": "Select#decf",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Select"
  },
  {
   "alias": "rank",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Rank",
   "ref": "Rank#67c6",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Rank"
  },
  {
   "alias": "queue",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Queue",
   "ref": "Queue#5689",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Queue"
  },
  {
   "alias": "solver_node",
   "relation": "references",
   "library": "bootstrap",
   "slug": "SolverNode",
   "ref": "SolverNode#f895",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/SolverNode"
  }
 ],
 "related": [],
 "used_by": [],
 "url": "https://semahash.org/vocabularies/bootstrap/patterns/BeamSearch",
 "md_url": "https://semahash.org/vocabularies/bootstrap/patterns/BeamSearch.md",
 "library_url": "https://semahash.org/vocabularies/bootstrap"
}
