Hash Tables: Math That Skips Searching
The magic formula:
storage_location = hash_function(key)
Username "alice_2024" → hash function → memory address 4,829
Every time you look up "alice_2024", the calculation produces 4,829. Go directly there. No searching needed.
1 item or 1 billion items? Same speed.