Principal variation search
Also known as PVS, NegaScout
adversarial game-tree-search
Principal variation search (PVS, also NegaScout) is alpha-beta that assumes the first move at each position is the best. It scouts each later move with a null window at the edge the side to move has to beat, which only tells whether the move beats it. Only a move that beats it is searched again with the full window. With good move ordering, most scouts confirm the first move and prune more than the full window would. With poor ordering, the re-searches cost more than they save, so measure on the game at hand.
Pseudocode
algorithm PVS(p, d, α, β)input: position p, depth d, window (α, β) from Max's point of view, (−∞, +∞) at the rootoutput: the score Alpha-beta(p, d, α, β) returns, with the same boundif d = 0 or moves(p) = ∅ thenreturn evaluate(p)s ← side-to-move(p)best ← nilfor each m in ordered-moves(p) do ▷ closes and better as in Alpha-betaif best ≠ nil and (closes(s, best, α, β) or satisfices(s, best)) thenbreakp′ ← play(p, m)v ← nilif best ≠ nil then ▷ the first move gets the full window right awayif s = Max and α ≠ −∞ thenv ← PVS(p′, d − 1, α, next-up(α)) ▷ scout: does m beat α?else if s = Min and β ≠ +∞ thenv ← PVS(p′, d − 1, next-down(β), β) ▷ scout: does m get below β?if v = nil or (v is a bound and α < v < β) thenv ← PVS(p′, d − 1, α, β) ▷ first move, no edge, or a bound inside (α, β)if s = Max thenα ← max(α, v)elseβ ← min(β, v)if best = nil or better(s, v, best) thenbest ← vreturn bestIn the crates
game-tree-searchAlpha-beta that scouts every move after the first with a null window and searches it again only when the scout fails high.
Lineage
Comes from
builds on Alpha-beta pruning
Led to
Nothing on this site.
Papers
- Parallel Search of Strongly Ordered Game Trees T. A. Marsland, M. Campbell · 1982· ACM Computing Surveys
- An Improvement to the Scout Tree Search Algorithm Alexander Reinefeld · 1983· ICCA Journal