MTD(f)
Also known as Memory-enhanced Test Driver
adversarial game-tree-search
MTD(f) finds the minimax score of the root with a series of null-window alpha-beta searches. Each pass asks whether the score reaches a guess, and its answer raises a lower bound or lowers an upper bound; the next guess is the score the pass returned. Once the bounds meet, one search with a window just around the score returns it exactly, with its principal variation. Passes revisit the same positions, so use MTD(f) with a transposition table and a good first guess, such as the score of the last deepening iteration.
Pseudocode
algorithm MTD(f)(p, d, g)input: root position p, depth d, first guess g (the last iteration's score, else evaluate(p))input: the scores range from min-score to max-scoreoutput: the minimax score of p, with its principal variationlo, hi ← −∞, +∞ ▷ what the passes proved about the scoreW ← (−∞, +∞)for pass in 1, …, 64 doβ ← gif lo = g thenβ ← next-up(g) ▷ g is proven: ask about the next score above itv, kind ← Alpha-beta(p, d, next-down(β), β) ▷ a null windowif kind = exact thenlo, hi ← v, velse if kind = at-least and v > lo thenlo ← velse if kind = at-most and v < hi thenhi ← velsebreak ▷ the pass proved nothing newg ← vif lo = hi or lo = max-score or hi = min-score thenW ← (next-down(g), next-up(g)) ▷ nothing lies beyond the end of the score rangebreakv, kind ← Alpha-beta(p, d, W) ▷ just around the score: exact, with its lineif W ≠ (−∞, +∞) and kind ≠ exact thenv, kind ← Alpha-beta(p, d, −∞, +∞)return vIn the crates
game-tree-searchNull-window passes of the root that close in on its score from a first guess, then one search around the score for the principal variation.
Lineage
Led to
Nothing on this site.
Papers
- Best-first fixed-depth minimax algorithms Aske Plaat, Jonathan Schaeffer, Wim Pijls, Arie de Bruin · 1996· Artificial Intelligence