This 2D companion draws a hash table as a row of numbered buckets: type a key or draw a random one, and watch a real hash function โ either the sum of its character codes or a polynomial rolling hash โ reduce it modulo the table size into a bucket index. When two keys land on the same bucket it is a collision, resolved either by chaining a small linked list underneath the bucket or by linear probing to the next open slot; switch strategies, resize the table, or change the hash function to see how the live collision count and load factor respond.