5.1 Hash Tables
5.1 Hash Tables Problem You need a data structure that supports fast insertion, lookup, and deletion by key. Arrays give fast access when the key is already a small integer index. A hash table generalizes that idea. It accepts keys such as strings, records, tuples, or large integers, converts each key into a table position, and stores the associated value there. Solution Use a hash function to convert each key...