English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

game tree ..which is the part of tree in data structures

2006-12-27 02:17:56 · 2 answers · asked by Sreedhar 1 in Computers & Internet Programming & Design

2 answers

Here you go

In game theory, a game tree is a directed graph whose nodes are positions in a game and whose edges are moves. The complete game tree for a game is the game tree starting at the initial position and containing all possible moves from each position.
The first two ply of the game tree for tic-tac-toe.
The first two ply of the game tree for tic-tac-toe.

The diagram shows the first two levels, or ply, in the game tree for tic-tac-toe. We consider all the rotations and reflections of positions as being equivalent, so the first player has three choices of move: in the centre, at the edge, or in the corner. The second player has two choices for the reply if the first player played in the centre, otherwise five choices. And so on.

The number of leaf nodes in the complete game tree is called the game tree complexity. It is the number of possible different ways the game can be played. The game tree complexity for tic-tac-toe is 26,830.

Game trees are important in artificial intelligence because one way to pick the best move in a game is to search the game tree using the minimax algorithm or its variants. The game tree for tic-tac-toe is easily searchable, but the complete game trees for larger games like chess are much too large to search. Instead, a chess-playing program searches a partial game tree: typically as many ply from the current position as it can search in the time available.

///

2006-12-27 02:21:52 · answer #1 · answered by jan 7 · 2 0

the game tree has as nodes positions and as arcs moves. It is a handy structure to travers all possible moves in a game

2006-12-27 10:25:59 · answer #2 · answered by gjmb1960 7 · 0 0

fedest.com, questions and answers