Tag

O(1) lookup

1 views collected around this technical thread.

Python Programming Learning Circle
Python Programming Learning Circle
Apr 18, 2020 · Fundamentals

Understanding Hashing and Hash Tables: Achieving O(1) Lookup

This article explains how hashing transforms data lookup from linear or logarithmic time to constant O(1) time by using hash functions and hash tables, illustrates the concept with a simple modulo‑based example, and discusses load factor and collision issues.

O(1) lookupcollisiondata structures
0 likes · 5 min read
Understanding Hashing and Hash Tables: Achieving O(1) Lookup