Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Hashing question

Author: Miguel A. Ballicora

Date: 06:21:27 12/31/01

Go up one level in this thread


On December 31, 2001 at 06:05:45, Alvaro Jose Povoa Cardoso wrote:

>Hi everyone,
>
>Wich is better?:
>
>   1 - Having a one dimension hash table and do the following:
>       temp_hashkey=(wtm) ? HashKey : ~HashKey;
>       like crafty does
>or:
>   2 - Having a two dimension hash table and store black in the index 0 for the
>       1st dimension and store white in index 1 for the 1st dimension.
>
>Is it a 'wash' or are there advantages and disadvantages?
>
>Best regards,
>Alvaro Cardoso

The first one does not have a problem of different distributions of color moves.
For instance, there is a chance that a certain plies you have much more
white moves than black moves (or viceversa) and one table fills up faster than
the other. If you hash the color, you do not have that problem. Side to move
is a characteristic of the position, so, why not hash it?

Regards,
Miguel




This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.