Negascout

Negascout

Negascout es una variante del algoritmo Minimax, es un algoritmo que combina la relación matemática del Negamax y el uso de ventana nula.

También llamado "búsqueda de la variante principal" este algoritmo puede ofrecer rendimientos incluso mayores a la poda alfa-beta si los nodos se encuentran correctamente ordenados.

Al igual que alfa-beta, negascout es un algoritmo de búsqueda direccional para calcular el valor minimax de un nodo en un árbol. La mejora del algoritmo negascout sobre el algoritmo alfa-beta es que el primero no examinará un nodo que el segundo podaría.

este algoritmo es útil siempre y cuando los nodos estén bien ordenados ya que supone que el primer nodo explorado será el mejor, así podrá confirmarlo en otros nodos usando la ventana nula. En caso de fallo, como el primer nodo no era el de máximo nivel, se seguirá buscando el mejor nodo en el árbol del mismo modo que en el algoritmo alfa-beta.

pseudocodigo:

int negascout(nodo, profundidad, α, β) {
    if (esTernimal(nodo) || profundidad==0)
        return valorHeuristico(nodo);
    b = β;  // la ventana inicial es (-β, -α)
    foreach nodoHijo
        a = -negascout (hijo, profundidad-1, -b, -α);
        if (a>α) α = a;
        if (α>=β)
            return α; //Corte Beta
        if (α>=b)  //comprueba si fallo la ventana nula
           α = -negascout(hijo, profundidad-1, -β, -α);  //Nueva búsqueda completa
           if (α>=β)
               return α; //Corte Beta    
        b = α+1; //Crea nuava ventana nula             
    return α;
}

Wikimedia foundation. 2010.

Игры ⚽ Поможем написать курсовую

Mira otros diccionarios:

  • Negascout — or Principal Variation Search is a negamax algorithm that can be faster than alpha beta pruning. Like alpha beta pruning, NegaScout is a directional search algorithm for computing the minimax value of a node in a tree. It dominates alpha beta… …   Wikipedia

  • MTD-f — MTD(f), an abbreviation of MTD(n,f) (Memory enhanced Test Driver with node n and value f) is a minimax search algorithm better than the basic alpha beta pruning algorithm. Zero Window Searches MTD(f) efficiently does only zero window alpha beta… …   Wikipedia

  • Alpha-beta pruning — is a search algorithm which seeks to reduce the number of nodes that are evaluated in the search tree by the minimax algorithm. It is a search with adversary algorithm used commonly for machine playing of two player games (Tic tac toe, Chess, Go …   Wikipedia

  • Negamax — En este artículo sobre videojuegos y matemáticas se detectaron los siguientes problemas: Necesita ser wikificado conforme a las convenciones de estilo de Wikipedia. Carece de fuentes o referencias que aparezcan en una fuente acreditada …   Wikipedia Español

  • Minimax — This article is about the decision theory concept. For other uses, see Minimax (disambiguation). Minimax (sometimes minmax) is a decision rule used in decision theory, game theory, statistics and philosophy for minimizing the possible loss for a… …   Wikipedia

  • Computer chess — 1990s Pressure sensory chess computer with LCD screen Chess+ For the iPad …   Wikipedia

  • Crafty — For the publisher of role playing games, see Crafty Games. Crafty Original author(s) Dr. Robert Hyatt Stable release 23.4 …   Wikipedia

  • Negamax — search is a slightly variant formulation of minimax search that relies on the zero sum property of a two player game. An animated pedagogical example showing the plain negamax algorithm (that is, without alpha beta pruning). The person performing …   Wikipedia

  • Fruit (chess engine) — Fruit is a chess engine developed by Fabien Letouzey. In the SSDF rating list released on November 24 2006, Fruit version 2.2.1 had a rating of 2842. In the CEGT rating list released on January 24 2007, Fruit version 2.2.1 had a rating of 2776.At …   Wikipedia

  • Alexander Reinefeld — (born 1957) is the head of computer science at Zuse Institute Berlin. His contributions to the field include the NegaScout algorithm.External links*Alexander Reinefeld s [http://www.zib.de/reinefeld/ personal homepage] …   Wikipedia

Compartir el artículo y extractos

Link directo
Do a right-click on the link above
and select “Copy Link”