diff --git a/src/main/java/datastructures/dictionaries/ChainingHashTable.java b/src/main/java/datastructures/dictionaries/ChainingHashTable.java index 078bb2d1761cea01a6e603492b3fca6ed2231561..0253cd305169b0f80b20df393ef9c0d9d2b77950 100644 --- a/src/main/java/datastructures/dictionaries/ChainingHashTable.java +++ b/src/main/java/datastructures/dictionaries/ChainingHashTable.java @@ -26,6 +26,9 @@ import java.util.function.Supplier; public class ChainingHashTable<K, V> extends DeletelessDictionary<K, V> { private Supplier<Dictionary<K, V>> newChain; + static final int[] PRIME_SIZES = + {11, 23, 47, 97, 193, 389, 773, 1549, 3089, 6173, 12347, 24697, 49393, 98779, 197573, 395147}; + public ChainingHashTable(Supplier<Dictionary<K, V>> newChain) { this.newChain = newChain; }