Alpha-beta pruning

Also known as: Alpha-beta search, Alpha-beta algorithm

A method that skips branches unable to change the final choice when both sides seek their best result.

This page is temporarily shown in English. Complete localization will be added in a later stage.

Explanation

Alpha-beta pruning speeds up the search performed by a , a program that compares moves and replies. The search can be pictured as a tree: each node is a position and each branch is a legal move. Without pruning, the program would examine many continuations that eventually prove irrelevant.

The method maintains two bounds while searching. Alpha is the best result one side can already guarantee along the current path. Beta is a limit created by an alternative already available to the opponent. Once a continuation is so poor that a rational player would never choose it, searching it further cannot change the decision at the higher node.

The branch is stopped because of a logical bound in the tree, not merely because a move looks unattractive. At the same depth and with the same evaluations at the search limit, alpha-beta returns the same choice as a complete search that assumes both sides make their best replies.

The saving depends heavily on move order. Testing strong moves early establishes useful bounds sooner and lets more branches stop without deeper examination. An , which assigns a numerical estimate to a position, supplies values where the finite search ends.

Usage and context

Alpha and beta are not two permanent evaluations of the board. They are changing bounds maintained while the algorithm explores a line.

Common confusions

Pruning and arbitrary rejection

Alpha-beta skips a branch only after proving that it cannot alter the choice under the current bounds.

More pruning means automatic strength

Strength also depends on move ordering, evaluation quality, search depth, and many other engine techniques.

Sources

  1. 1.An analysis of alpha-beta pruning, Artificial Intelligence / Elsevier
  2. 2.Alpha-Beta, Chess Programming Wiki
  3. 3.search.cpp, Stockfish

Related terms

© __2026__ __MindZug__