Overview
Robin Hood Hashing is a data structure that maintains an invariant that supports efficient queries, updates, summaries, or indexing. It trades implementation complexity for faster or more compact operations on repeated workloads.
Robin Hood Hashing organizes data around a query, update, ordering, or approximation invariant.
Compact metadata for implementation and discovery.
Robin Hood Hashing is a data structure that maintains an invariant that supports efficient queries, updates, summaries, or indexing. It trades implementation complexity for faster or more compact operations on repeated workloads.
Quick facts
Runtime and memory behavior at a glance.
Best
O(1)
Average
O(log n)
Worst
O(n)
Space
O(n)
distance = current_index - ideal_indexSwaps entries so long-probed keys are not unfairly displaced.
Show the structure changing as items are inserted, queried, or removed.
Robin Hood Hashing operates in O(log n) time and O(n) space within the Data Structure family. Key governing relation: distance = current_index - ideal_index. Often compared with Hash Table and Binary Search Tree.
What each reference supports for this entry.
Original reference for Robin Hood open addressing and probe-length balancing.
Open sourceGood next jumps from the relationship graph, ranked for useful discovery.
Robin Hood hashing is an open-addressed hash-table variant that balances probe distances during insertion.