Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Non power of two hash table sizes

Author: Dann Corbit

Date: 14:07:11 02/18/02

Go up one level in this thread


On February 18, 2002 at 16:56:37, Benny Antonsson wrote:

>Why must it be a prime number ?

When a composite number is chosen, factors in the number can cause a bad
[non-uniform] distribution.

See Knuth's "The Art of Computer Programming", Volume 3 'Sorting and Searching'
page 516 for a detailed explanation.



This page took 0.01 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.