Alpha-beta pruning computes the same value as minimax while skipping branches that provably cannot affect the final decision.
It maintains two bounds while traversing: α, the best value MAX can guarantee so far on the path to the root, and β, the best value MIN can guarantee so far. Whenever α ≥ β at a node, the remaining children can be pruned — the opponent already has a better alternative elsewhere, so this branch will never be chosen.
Theorem 3.2. Alpha-beta pruning returns the same action as minimax.
Proof sketch. Pruning only discards a subtree when α ≥ β, meaning MIN (or MAX) already has an alternative at an ancestor node that is at least as good as anything the pruned subtree could produce for the other player — by the minimax recurrence, a node's exact value is therefore unaffected by ignoring that subtree, since it could not have been selected regardless. Formally this follows by induction on tree depth, mirroring Theorem 3.1's induction with the additional invariant that any pruned branch's true value lies outside the (α, β) window and so cannot change the max/min at any ancestor. ∎
With a good move-ordering heuristic (trying the most promising moves first), alpha-beta reduces the effective branching factor from b to roughly √b in the best case — doubling the search depth achievable in the same time budget, since O((√b)^m) = O(b^(m/2)).
Continue with the book
Explore the full treatment, worked examples, and exercises in The AI Algorithms Compendium.
Companion article for The AI Algorithms Compendium, published by Choral Software. Article text and original examples © 2026 Choral Software. All rights reserved.
