Ing. Tarin Gamberini

Citazione

Counter

Counter

Standards

Valid XHTML 1.0!

Valid CSS!

Level A conformance icon, W3C-WAI Web Content Accessibility Guidelines 1.0

Campagne

Sito sensibilizzato, a livello AA, ad un corretto uso della e-mail

Best viewed with any browser

Get Thunderbird

Get Firefox

Use OpenOffice.org

pspad

Home > University Studies > University Projects

Artificial Intelligence

Algorithm of the Tagli Alfa-Beta

During the Artificial Intelligence course we have studied a particular set of games which have the following characteristics:

  • There are only two players which alternatively execute a move at a time.
  • They are perfect knowledge games: the players have both the same informations.

Typical perfect knowledge games are draughts, chess, etc... while typical imperfect knowledge games are the cards one like poker, bridge, etc...

It's possible to describe a game sequence by a tree called states' space, in which every node represents a game state. It starts from an initial state in which is established the player that has the right to move. The player performs a move reaching the successive state in which the right to move passes to the other player. So on till the reaching of the final state: a leaf of the states' space tree in which isn't possible any other move.

A typical approach to solve a game consist in a search in the states' space tree performed by algorithms. During the course we have studied the MIN-MAX algorithm and the Tagli Alfa-Beta one.

In this report we have implemented the Tagli Alfa-Beta in Java language.

The verify of the correctness of the implementation has be performed on exercises of some exam sessions complete with solution.

  • Introduzione
  • 1 Principio di funzionamento
  • 2 Diagramma di flusso dell'algoritmo
  • 3 Analisi delle classi
    • 3.1 Descrittore dello stato di gioco
      • 3.1.1 Attributi
      • 3.1.2 Metodi
    • 3.2 Tagli Alfa-Beta
      • 3.2.1 Attributi
      • 3.2.2 Metodi
    • 3.3 Gioco generico
      • 3.3.1 Attributi
      • 3.3.2 Metodi
  • 4 Verifica dell'implementazione in Java
  • Conclusioni
  • A Codice sorgente in linguaggio Java

Download

Download the documentation about the Alfa-Beta Cuts algorithm:

pdf format intelligenza_artificiale_tesina.pdf download from taringamberini.com 684kB

  • Read the legal notes by which the material on this site is distribuited.

Download the java source code about the Alfa-Beta Cuts algorithm:

jar format intelligenza_artificiale_tesina.jar download from taringamberini.com 174kB

  • Check the file integrity verifying its MD5 digest: 3dfb047154697b97f2eaef97af1bf7e7
  • Be sure about the file autenticity verifying its PGP/GPG sign link per il download file da taringamberini.com against my PGP/GPG public key.
  • Read the legal notes by which the material on this site is distribuited.

Copyright © 2003, 2008 Tarin Gamberini

Last updated 20/01/2008