Alle boeken

Professioneel

Apps Over Coach Inloggen Begin met lezen

Computer Science · Begrippenlijst

Wat is Alpha–beta pruning?

Ook bekend als: alpha--beta pruning

Definition 28.14 University Computer Science — Year 2 · Hoofdstuk 28 — Search and Games

Alpha–beta pruning computes the minimax value with two bounds passed down the tree: α\alpha, the value max is already sure of on the path from the root, and β\beta, the value min is already sure of. As soon as a node’s value is known to be outside (α,β)(\alpha, \beta), its remaining children are skipped: the player above has a better choice elsewhere.

The tree of : triangles pointing up are  nodes, down  nodes. After the first subtree the root is sure of 5. In the second subtree,  can already force 2 < 5 after two leaves, so its second child is never looked at; the same in the third. Dashed: the 5 leaves skipped. The bounds ≥ 6 and ≤ 2 are all alpha–beta knows of those nodes.
The tree of Output 28.4: triangles pointing up are max nodes, down min nodes. After the first subtree the root is sure of 55. In the second subtree, min can already force 2<52 < 5 after two leaves, so its second child is never looked at; the same in the third. Dashed: the 5 leaves skipped. The bounds ≥6\geq 6 and ≤2\leq 2 are all alpha–beta knows of those nodes.
Lees in het hoofdstuk →