Hash Sets
← Back to Hash-Based Structures
Collection that stores unique elements using hashing. Provides O(1) average membership testing and deduplication.
Key Properties
Complexity
- Insert O(1), Contains O(1), Delete O(1) — all average case.
Related
- Hash Tables (implementation — set is a map with only keys)
- Bloom Filters (space-efficient approximate alternative)