A transposition table is a specialized hash table that caches the results of evaluated game states or search nodes in adversarial tree search algorithms like Minimax and Monte Carlo Tree Search (MCTS). It functions by storing a Zobrist hash of the board position as a key, paired with the computed value, depth, and best move. This allows the algorithm to recognize when different sequences of moves lead to the same board position, enabling an immediate retrieval of the stored evaluation and preventing costly re-computation.
