Transposition Table
Home *Search * Transposition Table
ATransposition Table,
first used inGreenblatt's programMac Hack VI[1][2][3], is a database that stores results of previously performed searches. It is a way to greatly reduce the search space of achess tree with little negative impact. Chess programs, during theirbrute-force search, encounter the samepositions again and again, but from different sequences ofmoves, which is called atransposition. Transposition (andrefutation) tables are techniques derived fromdynamic programming[4], a term coined byRichard E. Bellman in the 1950s, when programming meant planning and dynamic programming was conceived to optimally plan multistage processes[5] .
Contents
How it works
When the search encounters atransposition, it is beneficial to 'remember' what was determined the last time the position was examined, rather than redoing the entire search again. For this reason, chess programs have a transposition table, which is a largehash table storing information about positions previously searched, how deeply they were searched, and what we concluded about them. Even if thedepth (draft) of the related transposition table entry is not big enough, or does not contain the right bound for a cutoff, abest (or good enough) move from a previous search can improvemove ordering, and save search time. This is especially true inside aniterative deepening framework, where one gains valuable table hits from previous iterations.
Hash functions
Hash functions convert chess positions into an almost unique, scalar signature, allowing fast index calculation as well as space-saving verification of stored positions.
Both, the more common Zobrist hashing as well BCH hashing use fast hash functions, to provide hash keys or signatures as a kind ofGödel number of chess positions, today typically64-bit wide. They areupdated incrementally duringmake andunmake move by either own-inverseexclusive or or by addition versus subtraction.
Address Calculation
The index is not based on the entire hash key because this is usually a 64-bit number, and with current hardware limitations, no hash table can be large enough to accommodate it. Therefore calculating the address or index requires a signaturemodulo a number of entries, for the power of two sized tables, the lower part of the hash key, masked by an 'and'-instruction accordantly.
What Information is Stored
Typically, the following information is stored as determined by thesearch[6] :
- Zobrist- orBCH-key, to see whether the position is the right one while probing
- Best- orRefutation move
- Depth (draft)
- Score,either withIntegrated Bound and Valueor otherwise with
- Type of Node[7]
- PV-Node, Score isExact
- All-Node, Score isUpper Bound
- Cut-Node, Score isLower Bound
- Age is used to determine when to overwrite entries from searching previous positions during thegame of chess
Table Entry Types
In analpha-beta search, we usually do not find the exact value of a position. But we are happy to know that the value is either too low or too high for us to be concerned with searching any further. If we have the exact value, of course, we store that in the transposition table. But if the value of our position is either high enough to set the lower bound, or low enough to set the upper bound, it is good to store that information also. So each entry in the transposition table is identified with thetype of node, often referred to asexact,lower- orupper bound.
Using the Transposition Table
Transposition Tables are an integral part of an engine's search. It is used in both search heuristics and move ordering.
Transposition Table Cutoffs
Depth, value, and bound information can be used to produce cutoffs and reduce redudant computation. In more advanced engines transposition table cutoffs are not performed on PV-Nodes.
A cutoff can be performed when the depth of entry is greater (or equal) to the depth of the current node and one of the following criteria is satisfied:
- The entry type is EXACT
- The entry type is LOWERBOUND and greater than or equal to beta
- The entry type is UPPERBOUND and less than alpha
Hash Move
Main Article:Hash Move
Best move/Refutation move information from the transposition table is the most important part of move ordering. They are first in order and can be searched before other moves are generated. When the hash move fails high, generating other moves is not necessary. InStockfish, 75% of cutoffs produced in a position with hash moves are caused by the hash move.
Singular Extensions
Restricted SE is only attempted on a position where a TT entry exist, they entry has a valid TT move, the entry has a high enough depth, and the entry has exact or lowerbound bounds.
Collisions
Thesurjective mapping from chess positions to a signature and an, even more, denser index range impliescollisions, different positions share the same entries, for two different reasons, hopefully, rare ambiguous keys (type-1 errors), or regularly ambiguous indices (type-2 errors).
Cardinalities
The typical cardinalities of positions and signatures inside the search reflect the likelihood of collisions:
| Cardinalities of positions and signatures | # |
|---|---|
| Upper bound for the number of reachablechess positions[8] | 1e46 |
| Different64 bit keys | 1.84e19 |
| Some number of distinct nodes searched per game, assuming 100 moves times 1e8 nodes per move | 1e10 |
| Different32 bit keys | 4.29e9 |
| Some arbitrary table size in the number of entries | 1e8 |
Index Collisions
Index collisions or type-2 errors[9][10], where different hash keys index same entries, happen regularly. They require detection, realized by storing the signature as part of the hash entry, to check whether a stored entry matches the position while probing. Especially with the power of two entry tables, many programmers choose to trade-off space for accuracy and only store that part of the hash key not already considered as an index, or even less.
Key Collisions
Key collisions or type-1 errors are inherent in using signatures with far fewer bits than required to encode all reachable chess positions. A key collision occurs when two different positions map the same hash key or signature[11][12]. When storing only a partial key, the chance of a collision greatly increases. To accept only hits wherestored moves arepseudo-legal decreases the chance of type-1 errors. On his computer chess page[13],Ken Regan broached on chess engine bugs, anomalies and hash collisions, and mentions aShredder 9.1 game where a key collision might have caused a strange move[14][15].
Bits Required
During theWCCC 1989 WorkshopNew Directions in Game-Tree Search,James Gillogly, author ofTech, discussed transposition table collisions[16] . He produced the following table using theBirthday Paradox, where the columns are the number of positions stored and the rows are the probability of collision. The entries are the number of bits of combined address and check hash required to reduce the probability of collision to the desired amount.
| Number of Positions: | 105 | 106 | 107 | 108 | 109 | 1010 | |
|---|---|---|---|---|---|---|---|
| Collision probability: | .01 | 39 | 46 | 53 | 59 | 66 | 73 |
| .001 | 43 | 49 | 56 | 63 | 69 | 76 | |
| .0001 | 46 | 53 | 59 | 66 | 73 | 79 | |
| .00001 | 49 | 56 | 63 | 69 | 76 | 83 | |
During the discussion,David Slate andKen Thompson pointed out that the Birthday Paradox does not apply to most programs, since the hash table will fill up and not all previous positions will be in the table; thus these figures must be regarded as an upper bound on the number of bits required for safety[17]. The dangers of transposition table collisions were further studied byRobert Hyatt andAnthony Cozzie as published in their 2005 paperHash Collisions Effect[18]. They gave a surprising answer to the question “Is it really worth all the effort to absolutely minimize signature collisions?”, and concluded that 64-bit signatures are more than sufficient.
Replacement Strategies
Because there are a limited number of entries in a transposition table, and because in modern chess programs, they can fill up very quickly, it is necessary to have a scheme by which the program can decide which entries would be most valuable to keep, i.e. a replacement scheme[19] . Replacement schemes are used to solve an index collision when a program attempts to store a position in a table slot that already has a different entry in it. There are two opposing considerations to replacement schemes:
- Entries that were searched to a high depth save more work per table hit than those searched to a low depth.
- Entries that are closer to the leaves of the tree are more likely to be searched multiple times, making the table hits of them higher. Also, entries that were searched recently are more likely to be searched again.
- Most well-performing replacement strategies use a mix of these considerations.
Always Replace
This replacement strategy is very simple, placing all emphasis on the second consideration. Any old entries are replaced immediately when a new entry is stored[20].
Priority by Searched Nodes Count
This replacement strategy uses the number of nodes searched spent to obtain an entry, as replacement priority.
Priority by Move Ordering Position
This replacement strategy uses the position of entry move inmove ordering list as replacement priority. The main idea is that if the best move was not considered as a good cut-off candidate by the move-ordering algorithm, storing it in TT should provide better help for the search.
Depth-Preferred
This replacement strategy puts all emphasis on the first consideration. The only criterion in deciding whether to overwrite an entry is whether the new entry has a higher depth than the old entry.
Two-tier System
This strategy, devised byKen Thompson andJoe Condon[21] , uses two tables, side by side. For each table slot, there is a depth-preferred and an always-replace entry[22] .
Bucket Systems
This family of strategies is similar to the two-tier system, but any number of tiers (known as "buckets") can be used (typically the number is based on the size of a cache line). The difference is that the buckets are not specific to one consideration, but rather the new entry overwrites the entry in the bucket with the lowest depth[23] .
Aging
Aging considers searches for different chess positions during gameplay. While early implementations and programs relying onroot pre-processing to guide search andevaluation were obligated to clear the hash table between root positions, most todays programs do not, profit from entries of previous searches. Nevertheless, to avoid persistence of old entries which may no longer occur from the current root, aging is used to likely replace those entries by new ones, even if their draft and flags would otherwise protect them. To implement aging, one often stores and compares the currenthalfmove clock as age, likely modulo some power two constant, depending on how many bits are used to store it inside an entry[24][25].
TT and Parallel Search
Aglobal transposition table, shared by multiplethreads orprocesses is essential for effectiveparallel search algorithms on modern multi-core CPUs, and might be accessedlock-less, as proposed byRobert Hyatt andTim Mann[26] .
Further Hash Tables
Besides storing the best move and scores of the search trees, furtherhash tables are often used to cache other features.
Maximizing Transpositions
See also
- CPW-Engine_transposition
- Fifty-move Rule
- Graph History Interaction
- Hamming Distance[27]
- Hash Move
- Hash Table
- Huge Pages
- Integrated Bounds and Values
- Interior Node Recognizer
- Iterative Deepening
- Lasker-Reichhelm Position (Fine #70)
- Move Ordering
- Path-Dependency
- Persistent Hash Table
- Refutation Table
- Repetitions
- Search Instability
- Shared Hash Table
- Transposition
- TT Statistics
Publications
1967 ...
- Richard Greenblatt,Donald Eastlake,Stephen D. Crocker (1967).The Greenblatt Chess Program. Proceedings of the AfiPs Fall Joint Computer Conference, Vol. 31, pp. 801-810. Reprinted (1988) inComputer Chess Compendium,pdf fromThe Computer History Museum or aspdf or ps fromDSpace atMIT
1970 ...
- Albert Zobrist (1970).A New Hashing Method with Application for Game Playing. Technical Report #88, Computer Science Department, The University of Wisconsin, Madison, WI, USA. Reprinted (1990) inICCA Journal, Vol. 13, No. 2.,pdf
- David Slate,Larry Atkin (1977).CHESS 4.5 - The Northwestern University Chess Program.Chess Skill in Man and Machine (ed.Peter W. Frey), pp. 82-118. Springer-Verlag, New York, N.Y. 2nd ed. 1983. ISBN 0-387-90815-3. Reprinted (1988) inComputer Chess Compendium »Chess
1980 ...
- Harry Nelson (1985).Hash Tables in Cray Blitz.ICCA Journal, Vol. 8, No. 1
- Tony Warnock,Burton Wendroff (1988).Search Tables in Computer Chess.ICCA Journal, Vol. 11, No. 1
- James Gillogly (1989).Transposition Table Collisions.Workshop on New Directions in Game-Tree Search
- Harry Nelson (1989).Some Observations about Hash Tables in Cray Blitz.Workshop on New Directions in Game-Tree Search
1990 ...
- Dennis Breuker,Jos Uiterwijk,Jaap van den Herik (1996).Replacement Schemes and Two-Level Tables.ICCA Journal, Vol. 19, No. 3.
- Don Beal,Martin C. Smith (1996).Multiple Probes of Transposition Tables.ICCA Journal, Vol. 19, No. 4
- Dennis Breuker,Jos Uiterwijk,Jaap van den Herik (1997).Information in Transposition Tables.Advances in Computer Chess 8
- Dennis Breuker (1998).Memory versus Search in Games. Ph.D. Thesis,Universiteit Maastricht, The Netherlands. ISBN 90-9012006-8.
2000 ...
- John Romein,Henri Bal,Jonathan Schaeffer,Aske Plaat (2002).A Performance Analysis of Transposition-Table-Driven Scheduling in Distributed Search. IEEE Transactions on Parallel and Distributed Systems, Vol. 13, No. 5, pp. 447–459.pdf »Parallel Search[28][29]
- Robert Hyatt,Tim Mann (2002).A lock-less transposition table implementation for parallel search chess engines.ICGA Journal, Vol. 25, No. 1
- Robert Hyatt,Anthony Cozzie (2005).The Effect of Hash Signature Collisions in a Chess Program.ICGA Journal, Vol. 28, No. 3
- Borko Bošković,Sašo Greiner,Janez Brest,Viljem Žumer (2005).The Representation of Chess Game. Proceedings of the 27th International Conference on Information Technology Interfaces
- Joel Veness,Alan Blair (2007).Effective Use of Transposition Tables in Stochastic Game Tree Search. IEEE Symposium on Computational Intelligence and Games,pdf
- Rune Rasmussen,Frédéric Maire,Ross Hayward (2007).A Template Matching Table for Speeding-Up Game-Tree Searches for Hex. 20th Australian Joint Conference on Artificial Intelligence »Hex
2010 ...
- Timothy Furtak,Michael Buro (2011).Using Payoff-Similarity to Speed Up Search.IJCAI 2011,pdf »Skat
- Robert Hyatt (2014).A Solution to Short PVs Caused by Exact Hash Matches.ICGA Journal, Vol. 37, No. 3 »Separate TT for the PV
Forum Posts
1990 ...
- Hash tables - Clash!!! What happens next? byValavan Manohararajah,rec.games.chess, March 14, 1994
- Hash table question byJohn Stanback,rec.games.chess, March 23, 1994
1995 ...
- hash mem in win-chess progs byPc Sol,rgcc, September 28, 1995 »Windows
1996
- Transposition table by Matthew Bengtson,rgcc, January 25, 1996
- Collision probability byDennis Breuker,rgcc, April 15, 1996
- Alpha-Beta window in transposition tables? by Marty Bochane,rgcc, October 25, 1996[30]
- Re: Berliner vs. Botvinnik Some interesting points, post 8 byBradley C. Kuszmaul,rgcc, November 06, 1996 » Transposition Table inMac Hack
- hash table fail high/fail low problem byRobert Hyatt,rgcc, November 26, 1996
1997
- Hash functions for use with a transition table byTim Foden,rgcc, March 5, 1997 »Transposition Table
- Re: Hash functions for use with a transition table byRonald de Man,rgcc, March 7, 1997 »BCH Hashing
- Handling of repetition (draw) in transposition table by Bjarke Dahl Ebert,rgcc, June 9, 1997 »Repetitions
- double hash tables byChris Whittington,CCC, October 01, 1997
- Hash collisions (was Re: Let's analyze move 36) byDaniel Homan,CCC, October 08, 1997 »Collisions
- Using values from transition tables byTim Foden,rgcc, October 13, 1997
1998
- Fast hash algorithm by John Scalo,CCC, January 08, 1998
- Fast hash key method - Revisited! by John Scalo,CCC, January 14, 1998
- Hash tables and data-cache, some programmer stuff... byEd Schröder,CCC, January 17, 1998
- Hash Table Size Versus Performance by Steven Juchnowski,CCC, May 30, 1998
- Selective deepening and Hashtables byWerner Inmann,CCC, June 30, 1998
- Using too-shallow mate scores from the hash table byDavid Eppstein,CCC, July 05, 1998 »Mate Scores
- Re: Using too-shallow mate scores from the hash table byDavid Eppstein,CCC, July 06, 1998
- Re: Using too-shallow mate scores from the hash table byDon Dailey,CCC, July 07, 1998
- draw by repetition and hash tables byWerner Inmann,CCC, July 24, 1998
1999
- Hash Tables - Should one store EP, Castling rights etc? bySteve Maughan,CCC, January 30, 1999 »Castling Rights,En passant
- Hash collisions and a little maths byRémi Coulom,CCC, February 18, 1999
- Hash Collisions byKarinsDad,CCC, February 21, 1999
- Problem with draws by rep and hash table byJames Robertson,CCC, October 07, 1999
2000 ...
- Can we use hash table at root? by Tim,CCC, January 31, 2000 »Root
- Re: Atomic write of 64 bits byFrans Morsch,comp.lang.asm.x86, September 25, 2000 »MMX,Parallel Search
- hashing function byVladimir R. Medvedev,rgcc, October 17, 2000
- Hash table efficiency byMiguel A. Ballicora,CCC, December 05, 2000 »Gaviota,Search Statistics
- Why not store both a lower and an upper bound in a hashtable? byLeen Ammeraal,CCC, December 06, 2000
2001
- A fast hash -- assuming you are not planning to do incremental updates byDann Corbit,CCC, June 15, 2001
- "Don't trust draw score" <=Is it true? byTeerapong Tovirat,CCC, August 08, 2001 »Repetitions,Path-Dependency
- About random numbers and hashing bySeveri Salminen,CCC, December 04, 2001
- Re: About random numbers and hashing bySven Reichard,CCC, December 05, 2001
- When to RecordHash()? bySune Fischer,CCC, December 25, 2001
2002
- Non power of two hash table sizes byAlvaro Jose Povoa Cardoso,CCC, February 18, 2002
- Detecting Draws using a Small Hash Table? bySteve Maughan,CCC, February 20, 2002
- hash entry replacement schemes byScott Farrell,CCC, September 14, 2002
- hash numbers requested: authors please read byJames Swafford,CCC, September 17, 2002
2003
- How important is a big hash table? Measurements... byTom Kerrigan,CCC, March 29, 2003
- Another memory latency test byDieter Bürßner,CCC, July 17, 2003
- Replacement shemes bySune Fischer,CCC, July 27, 2003
- Is it necessary to include empty fields in the hash key of a position? by Frank Hablizel,rgcc, December 25, 2003
2004
- I need your opinion about this hash entry structure byFederico Corigliano,CCC, January 02, 2004
- Question about details of hashing (olithink) byMichel Langeveld,CCC, January 22, 2004 »OliThink
- Fruit - Question for Fabien byDan Honeycutt,CCC, March 11, 2004 »Fruit,Node Types,Principal Variation,Principal Variation Search
- Hashkey collisions (typical numbers) byRenze Steenhuisen,CCC, April 07, 2004 »Transposition Table - Collisions
- A move to search 2nd... Keep in the trans table? byEric Oldre,CCC, July 21, 2004
- Transposition table replacement byEric Oldre,CCC, July 29, 2004
2005 ...
- Side effects of transposition tables byAlessandro Scotti,Winboard Forum, March 04, 2005
- Hashing double bounds byRasjid Chan,CCC, June 20, 2005
- Mate scores in the hash table byEduardo Waghabi,Winboard Forum, September 02, 2005 »Mate Scores
- Re: Mate scores in the hash table byBruce Moreland,Winboard Forum, September 04, 2005
- Re: Mate scores in the hash table byJosué Forte,Winboard Forum, September 04, 2005
- Hash table hit rate byStef Luijten,Winboard Forum, November 16, 2005
2007
- Transposition Tables by Colin,CCC, July 15, 2007
- fail high handling with tranposition tables byUri Blass,CCC, August 01, 2007
2008
- Problem with Transposition Table and Repitition-Draw byOliver Brausch,CCC, January 11, 2008 »Repetitions
- Transposition Table and nps drop byMathieu Pagé,CCC, February 27, 2008 »Nodes per Second
- Semi-Path Dependent Hashing: a semi-useless idea byZach Wegner,CCC, May 24, 2008 »Path-Dependency
- Is 64 bits enough as a hash length byMathieu Pagé,CCC, July 10, 2008
- 31 bit hash values. How often will it fail? byCarey,CCC, September 07, 2008 »Transposition Table - Collisions
- Adaptative LMR and TT byFermin Serrano,CCC, December 23, 2008 »Late Move Reductions
2009
- transposition table details byDon Dailey,CCC, May 26, 2009
- Transposition Table byPablo Vazquez,CCC, June 26, 2009
- Cache pollution when reading/writing hash table byMarco Costalba,CCC, August 09, 2009
- Transposition table pruning byLuca Hemmerich,CCC, November 25, 2009
2010 ...
- Correcting Evaluation with the hash table byMark Lefler,CCC, February 05, 2010 »Evaluation
- TT hit/miss rates byVlad Stamate,CCC, February 25, 2010
- Zero window TT entry byVlad Stamate,CCC, March 05, 2010 »Null Window
- Null-move pruning and the hash table byRobert Purves,CCC, March 28, 2010 »Null Move Pruning
- Crafty Transpostion Table Question byEric Stock,CCC, May 30, 2010 »Crafty,Lockless Hashing
- TT behavior byKarlo Bala Jr.,CCC, June 25, 2011
- working! byRobert Hyatt,CCC, September 17, 2010 »Separate TT for the PV
- Is a querying the hash tables such a huge bottleneck? byOliver Uwira,CCC, October 28, 2010
- Puzzle with mate scores in TT byRobert Purves,CCC, December 10, 2010 »Mate Scores
2011
- Transposition Table: addressing slots byMichael Hoffmann,CCC, March 18, 2011
- Transposition Table updates in Stockfish byOnno Garms,CCC, April 12, 2011 »Stockfish
- Hashing the PV byStef Luijten,CCC, June 06, 2011
- Dual Bound TT byJoão Guerra,CCC, July 28, 2011
- TT Key Collisions, Workarounds? byClemens Pruell,CCC, August 16, 2011
- Repetitions/50 moves and TT bySergei Markoff,CCC, September 13, 2011 »Fifty-move Rule
- Determining the age of TT buckets byJulien Marcel,CCC, Sepember 18, 2011
- Key collision handling byJonatan Pettersson,CCC, October 21, 2011
- Mate score in TT byMarco Costalba,CCC, December 28, 2011 »Mate Scores
2012
- Question on TT byGiuseppe Cannella,Winboard Forum, January 06, 2012
- Stockfish hash implementation byJon Dart,CCC, January 10, 2012 »Stockfish
- cache alignment of tt byDaniel Shawul,CCC, March 11, 2012
- Hash table division byEd Schröder,CCC, April 05, 2012
- TT question? byFermin Serrano,CCC, May 19, 2012 »Quiescence Search
- hashtables byDaniel Anulliero,Winboard Forum, May 22, 2012
- how to measure frequency of hash collisions byDaniel Shawul,CCC, June 16, 2012
- TT avoid nullmove flag byMatthew R. Brades,CCC, August 02, 2012 »Null Move Pruning
- Transposition Table - Replacement and PV byCheney Nattress,CCC, December 04, 2012
- Speaking of the hash table byEd Schröder,CCC, December 09, 2012
2013
- Transposition table usage in quiescent search? byJerry Donald,CCC, March 01, 2013 »Quiescence Search
- Transposition driven scheduling byDaniel Shawul,CCC, April 04, 2013[31]
- The effect of larger hash size byJacob Børs Lind,CCC, April 13, 2013
- Effect of the Hash Table size byKai Laskos,CCC, April 28, 2013
- Hash cutoffs and analysis byHarm Geert Muller,CCC, June 17, 2013
- Hashing based on move lists byMatthew R. Brades,CCC, June 30, 2013
- transposition tables byFolkert van Heusden,CCC, July 23, 2013
- ep and castle rights hashing byNatale Galioto,CCC, September 15, 2013 »Castling Rights,En passant,Repetitions
- Hash tables: one bound or two bounds? byAlberto Sanjuan,CCC, December 11, 2013
2014
- LMR & TT interaction byNatale Galioto,CCC, April 29, 2014 »Late Move Reductions
- transposition and multithreading question byMarco Belli,CCC, May 04, 2014 »Parallel Search
- transposition table implementation help by lazyguy123,OpenChess Forum, August 09, 2014
- Transposition table chaining and replacement strategy byAlex Ferguson,CCC, August 28, 2014
- Using the Transposition Table for long searches by Theodr Elwurtz,FishCooking, September 22, 2014 »Stockfish
- Speculative prefetch byPeter Österlund,CCC, September 27, 2014 »Memory
- Transposition Table Oddity byThomas Kolarik,CCC, September 28, 2014
- Can someone explain what advantage there is to... by Forrest Hoch,CCC, October 06, 2014
- Cache over-writing and PV's by Forrest Hoch,CCC, October 16, 2014 »Principal Variation
- Mate score from the transposition table byEvert Glebbeek,CCC, October 25, 2014 »Mate Scores
- Two hash functions for distributed transposition table byDaniel Shawul,CCC, December 16, 2014
- Transposition table in Q-search byAlex Ferguson,CCC, December 26, 2014 »Quiescence Search
2015 ...
- Legality Check on TT move by Jordan Bray,CCC, January 11, 2015
- (iteration+depth) TT replacement policy byAleks Peshkov,CCC, February 27, 2015
- Idea #9228: Clearing stale transtable entries bySteven Edwards,CCC, April 06, 2015
- TTable questions byHenk van den Belt,CCC, April 11, 2015
- Fractional plies and transposition tables byAlexandru Mosoi,CCC, April 18, 2015 »Depth - Fractional Plies
- Re: Worst advice byAlexandru Mosoi,CCC, August 10, 2015
- most similar hashes of two positions byAlexandru Mosoi,CCC, August 12, 2015
- The cost of transposition table instrumentation bySteven Edwards,CCC, August 23, 2015
- atomic TT by lucasart,CCC, September 13, 2015
- Transposition table test positons byRobert Pope,CCC, September 11, 2015 »Test-Positions
- Hash cache byHarm Geert Muller,CCC, October 12, 2015
- Perft and hash with legal move generator byPeterpan,OpenChess Forum, November 12, 2015 »Perft
- Transposition table utilizattion byShawn Chidester,CCC, December 29, 2015
2016
- On-the fly hash key generation? byEvert Glebbeek,CCC, January 12, 2016
- Transposition Age Tutorial byDennis Sceviour,CCC, January 25, 2016
- TT Mate scores by rgoomes,OpenChess Forum, February 10, 2016 »Mate Scores
- Hashing question by Kenneth Jones,CCC, February 23, 2016
- TT and Iterative Deepening by kuket15,OpenChess Forum, February 26, 2016 »Iterative Deepening
- Transposition table replacement strategies byShawn Chidester,CCC, March 01, 2016
- about hashtable byDaniel Anulliero,CCC, March 04, 2016
- Hashing in Qsearch? byMartin Fierz,CCC, April 03, 2016 »Quiescence Search
- Shifting alpha/beta on hash hit byMartin Fierz,CCC, April 14, 2016 »Search Instability
- What happens during a hash collision in say Stockfish ... by Isaac Haïk Dunn,CCC, April 24, 2016
- Hashtable aging byMartin Fierz,CCC, April 25, 2016
- Transposition Table replacement schemes by Andrew Grant,CCC, May 05, 2016
- lockless hashing by Lucas Braesch,CCC, May 10, 2016 »Shared Hash Table
- Suggestion for hash tables and analysis byJ. Wesley Cleveland, May 22, 2016
- Hashtable and 50 move rule draws byStan Arts,CCC, May 24, 2016 »Fifty-move Rule
- Transposition Table - Updating entries byAndrew Grant,CCC, June 24, 2016
- Transposition Table Usage by theturk1234,OpenChess Forum, July 12, 2016
- Aspiration window with TT question bysandermvdb,OpenChess Forum, August 01, 2016 »Aspiration Windows
- Storing both alpha and beta scores in TT byThomas Dybdahl Ahle,CCC, August 02, 2016
- Using side to move as a separate bit in hash key byJ. Wesley Cleveland,CCC, August 06, 2016 »Side to move
- Question about TT by stefano.c,FishCooking, August 21, 2016
- transposition table pseudocode byErin Dame,CCC, August 22, 2016
- transposition tables and three-fold repetition byErin Dame,CCC, September 10, 2016 »Repetitions
- Transposition tables in Cray Blitz byErin Dame,CCC, September 26, 2016[32] »Cray Blitz
- Hash table transformation byDann Corbit,CCC, October 05, 2016
- Modify hash probing code to pvs by Fernando Tenorio,CCC, December 05, 2016
2017
- What is wrong with doing Nulls & ttcuts in a pv node ? byMahmoud Uthman,CCC, January 21, 2017 »Null Move Pruning,PV-Nodes
- Interesting hash-replacement scheme byHarm Geert Muller,CCC, April 08, 2017
- Problems with TT, sometimes makes blunder moves byTony Soares,CCC, April 12, 2017
- TT Table replacement strategy by kickstone,OpenChess Forum, April 29, 2017
- Hash Tables Deep Blue by Gustavo Mallada,CCC, May 18, 2017 »Deep Blue
- Hash table byDaniel José Queraltó,CCC, June 12, 2017
- Improving hash replacing schema for analysis mode byDaniel José Queraltó,CCC, July 05, 2017 »Replacement Strategy,Persistent Hash Table
- TT aging byMarco Pampaloni,CCC, July 09, 2017
- Equidistributed draft byAlvaro Cardoso,CCC, July 14, 2017
- 2-level TT byRein Halbersma,CCC, July 14, 2017
- cutechess-cli: not restarting an engine because of tt byFolkert van Heusden,CCC, July 22, 2017 »Cutechess-cli
- Size of Transposition Table Entry byJason Fernandez,CCC, September 29, 2017
- Transposition table and Fine#70 byVincent Tang,CCC, October 23, 2017 »Lasker-Reichhelm Position
- TT in Qsearch byLaurie Tunnicliffe,CCC, December 05, 2017 »Quiescence Search
- Transposition table based pruning idea byJerry Donald,CCC, December 25, 2017 »Pruning
- hashing in chess4j byJames Swafford,CCC, December 30, 2017 »chess4j
2018
- Marcel Duchamp endgame "splits" engines / hash phenomenon byKenneth Regan,CCC, February 19, 2018 »Marcel Duchamp
- Do You Track Hash Table Efficiency? by OneMoreTime,OpenChess Forum, April 07, 2018
- Mate scores in TT (a new?... approach) by Vince Sempronio,CCC, April 09, 2018
- Yet another Mate scores in TT thread byAndrew Grant,CCC, April 12, 2018 »Checkmate,Score
- Draw scores in TT bySrdja Matovic,CCC, April 14, 2018 »Draw,Draw Score
- Depth extensions and effect on transposition queries byKenneth Jones,CCC, April 16, 2018 »Extensions,Check Extensions
- Not detected collisions in tt probing byAndreas Matthies,CCC, May 09, 2018 »Collisions
2019
- Playing transposition table moves in the Quiescence search byAndrew Grant,CCC, January 17, 2019 »Quiescence Search
- Prefetch and Threading byDennis Sceviour,CCC, April 25, 2019 »Memory,Thread
- Debugging a transposition table byVincent Tang,CCC, May 29, 2018 »Debugging,Lasker-Reichhelm Position
- Hash collision? byTom King,CCC, June 05, 2019
- Looking for TT policy advice byVivien Clauzon,CCC, October 04, 2019 »Replacement Strategy
- Probing the transposition table at depth 0 byGonzalo Arro,CCC, November 29, 2019
2020 ...
- hash collisions byJon Dart,CCC, January 28, 2020 »Key Collisions
- Dense board representation as hash code by koedem,CCC, February 01, 2020
- Zobrist key independence byHarm Geert Muller,CCC, February 17, 2020 »Zobrist Hashing
- SIMD methods in TT probing and replacement byHarm Geert Muller,CCC, February 20, 2020 »SIMD and SWAR Techniques
- Measuring Hash Collisions (once again) byEd Schröder,CCC, February 27, 2020
- Hash size, hash fullness, strength byVivien Clauzon,CCC, February 29, 2020
- Where to enter/read position into hash table in perft? byMarcel Vanthoor,CCC, March 28, 2020 »Perft
- Hash entry/bucket memory usage optimization byMarcel Vanthoor,CCC, March 30, 2020
- asymmetric evaluation and TT byVivien Clauzon,CCC, June 02, 2020 »Asymmetric Evaluation
- Correct way to store and extract mate scores by Ian Mitchell,CCC, July 08, 2020 »Checkmate,Score
- Principal Variation Search vs. Transposition Table byMarcel Vanthoor,CCC, October 26, 2020 »Principal Variation,Principal Variation Search
2021
- Transposition table replacement scheme byNiels Abildskov,CCC, February 05, 2021
- Best practices for transposition tables by Brian Adkins,CCC, February 06, 2021
- TT: key collisions by Brian Adkins,CCC, February 13, 2021 »Key Collisions
- Hash move ordering vs. Hash cuts: savings in number of nodes visited byMarcel Vanthoor,CCC, March 16, 2021
- PERFT transposition table funny?! byMartin Bryant,CCC, April 10, 2021 »Perft,Memory
- For or against the transposition table probe in quiet search? byEugene Kotlov,CCC, May 11, 2021 »Quiescence Search
- Saving moves into the TT byMarcel Vanthoor,CCC, June 11, 2021
- Hash value composition byYves De Billoëz,CCC, June 17, 2021
- When to clear the Transposition table? byThomas Jahn,CCC, June 28, 2021
- About move ordering and TT hitrate by Giovanni Maria Manduca,CCC, October 22, 2021 »Move Ordering
2022
- Transposition table based cutoffs by Michal Witanowski,CCC, April 05, 2022
- Consensus for TT: Buckets with Entries, or Entries with Buckets? byMarcel Vanthoor,CCC, April 19, 2022
2023
- Checking TT move for legality by Aaron Li,CCC, August 20, 2023
2024
- Help with transposition table by E Boatwright,CCC, January 21, 2024
- adding TT reduces NPS by allot by Ravael Jansen,CCC, March 29, 2024
- Hybride replacemment strategy worse than always-replace by mathmoi,CCC, April 25, 2024
External Links
- The Main Transposition Table fromBruce Moreland'sProgramming Topics
- Transposition table from Wikipedia
- Zobrist hashing from Wikipedia
- Gödel numbering from Wikipedia
- Computer Chess - Hash Collisions in Chess Engines, and What They May Mean... byKenneth W. Regan
- Hashing in chess4j byJames Swafford, December 30, 2017»chess4j
- Tal Wilkenfeld -Table For One,YouTube Video
References
- ↑Richard Greenblatt,Donald Eastlake,Stephen D. Crocker (1967).The Greenblatt Chess Program. Proceedings of the AfiPs Fall Joint Computer Conference, Vol. 31, pp. 801-810. Reprinted (1988) inComputer Chess Compendium,pdf fromThe Computer History Museum or aspdf or ps fromDSpace atMIT
- ↑Albert Zobrist (1970).A New Hashing Method with Application for Game Playing. Technical Report #88, Computer Science Department, The University of Wisconsin, Madison, WI, USA. Reprinted (1990) inICCA Journal, Vol. 13, No. 2,pdf
- ↑Re: Berliner vs. Botvinnik Some interesting points, post 8 byBradley C. Kuszmaul,rgcc, November 06, 1996 » Transposition Table inMac Hack
- ↑Algorithms that use dynamic programming from Wikipedia
- ↑Sanjoy Dasgupta,Christos H. Papadimitriou,Umesh Vazirani (2006).Algorithms.McGraw-Hill, ISBN: 978-0073523408,amazon, Chapter 6, Dynamic programming
- ↑Dennis Breuker,Jos Uiterwijk,Jaap van den Herik (1997).Information in Transposition Tables.Advances in Computer Chess 8
- ↑MTD(f)- and somePVS-implementations store distinctupper andlower bound scores, rather than one score with flags
- ↑Shirish Chinchalkar (1996).An Upper Bound for the Number of Reachable Positions.ICCA Journal, Vol. 19, No. 3
- ↑Albert Zobrist (1970).A New Hashing Method with Application for Game Playing. Technical Report #88, Computer Science Department, The University of Wisconsin, Madison, WI, USA. Reprinted (1990) inICCA Journal, Vol. 13, No. 2,pdf
- ↑Collision probability byDennis Breuker,rgcc, April 15, 1996
- ↑TT Key Collisions, Workarounds? byClemens Pruell,CCC, August 16, 2011
- ↑how to measure frequency of hash collisions byDaniel Shawul,CCC, June 16, 2012
- ↑Computer Chess - Hash Collisions in Chess Engines, and What They May Mean... byKenneth W. Regan
- ↑Pablo Lafuente vs Shredder (Computer) (2005) fromchessgames.com
- ↑Current tournaments – Sanjin, Biel, Argentina, Israel,ChessBase News, July 21, 2005
- ↑James Gillogly (1989).Transposition Table Collisions.Workshop on New Directions in Game-Tree Search
- ↑James Gillogly (1989).New Directions in Game-Tree Search - First Workshop Session.ICCA Journal, Vol. 12, No. 2
- ↑Robert Hyatt,Anthony Cozzie (2005).The Effect of Hash Signature Collisions in a Chess Program.ICGA Journal, Vol. 28, No. 3
- ↑Dennis Breuker,Jos Uiterwijk,Jaap van den Herik (1994).Replacement Schemes for Transposition Tables.ICCA Journal, Vol. 17, No. 4
- ↑Re: Transposition table usage in quiescent search? byRobert Hyatt,CCC, March 06, 2013
- ↑Joe Condon,Ken Thompson (1983).BELLE Chess Hardware.Advances in Computer Chess 3
- ↑Dennis Breuker,Jos Uiterwijk,Jaap van den Herik (1996).Replacement Schemes and Two-Level Tables.ICCA Journal, Vol. 19, No. 3
- ↑Don Beal,Martin C. Smith (1996).Multiple Probes of Transposition Tables.ICCA Journal, Vol. 19, No. 4
- ↑Transposition Age Tutorial byDennis Sceviour,CCC, January 25, 2016
- ↑Hashtable aging byMartin Fierz,CCC, April 25, 2016
- ↑Robert Hyatt andTim Mann (2002).A lock-less transposition table implementation for parallel search chess engines.ICGA Journal, Vol. 25, No. 1
- ↑Re: About random numbers and hashing bySven Reichard,CCC, December 05, 2001
- ↑Transposition-driven scheduling - Wikipedia
- ↑Transposition driven scheduling byDaniel Shawul,CCC, April 04, 2013
- ↑Re. Fail low after fail high byMarcel van Kervinck,CCC, April 05, 2015 »Fail-Low,Fail-High
- ↑John Romein,Henri Bal,Jonathan Schaeffer,Aske Plaat (2002).A Performance Analysis of Transposition-Table-Driven Scheduling in Distributed Search. IEEE Transactions on Parallel and Distributed Systems, Vol. 13, No. 5, pp. 447–459.pdf
- ↑David E. Welsh,Boris Baczynskyj (1985).Computer Chess II. William C Brown Publications, ISBN-13: 978-0697099112

