Beam Search


Detailed Beam Search(contd.)


Download 242.04 Kb.
bet6/8
Sana18.02.2023
Hajmi242.04 Kb.
#1211439
1   2   3   4   5   6   7   8
Bog'liq
cs344-beam-search-2feb11

Detailed Beam Search(contd.)

  • Set B = ∅.
    • Select the min {β, |C|} best nodes in C (usually the nodes with the lowest upper bound)
    • And add them to B.
    • Set C = ∅.
  • Stopping condition:
    • If the nodes in B are leaf (they hold a complete sequence), select the node with the lowest total cost as the best sequence found and stop.
    • Otherwise, go to step 2.

Performance

Filtered Beam Search

Filtered Beam Search(contd.)

Let B = Beam Width and C = the set of offspring nodes

n0 be the parent or root node.

  • Initialization:
    • Set C = ∅.
    • Set B = {n0 }
  • For each node in B:
    • Branch the node generating the corresponding children.
    • Add to C the child nodes that are not eliminated by the filtering procedure.
  • Set B = ∅. For all nodes in C:
    • Perform a detailed evaluation for that node (usually by calculating an upper bound on the optimal solution value of that node)
    • Select the min {β, |C|} best nodes in C (usually the nodes with the lowest upper bound) and add them to B.
    • Set C = ∅.

Filtered Beam Search(contd.)

  • Set B = ∅. For all nodes in C:
    • Perform a detailed evaluation for that node (usually by calculating an upper bound on the optimal solution value of that node)
    • Select the min {β, |C|} best nodes in C (usually the nodes with the lowest upper bound) and add them to B.
    • Set C = ∅.
  • Stopping condition:
    • If the nodes in B are leaf (they hold a complete sequence), select the node with the lowest total cost as the best sequence found and stop.
    • Otherwise, go to step 2.

Download 242.04 Kb.

Do'stlaringiz bilan baham:
1   2   3   4   5   6   7   8




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling