hash table

Index-mapped container

A hash table is a data structure that stores key-value pairs for rapid lookup.

It uses a hash function to convert keys into array indices, allowing retrieval in nearly constant time regardless of the table's size.

Hash tables power dictionaries in programming languages and databases: The program stores user sessions in a hash table for quick access.

Also called a hash map.

implementations

dictionary

Alphabetical word reference

  • mapSpatial representation of terrain
  • shelveSuspend or store
  • cacheConcealed storage spot
structure

key-value

Data pair structure

  • bucketOpen-top carrying vessel
  • arrayOrdered collection or display
  • slotNarrow slit for insertion

entry · node · index · pointer · linked list · pair · chaining · tombstone · capacity · size

operations

lookup

Act of retrieving information

retrieve · get · put · find · access · resize · probe · traverse · update · contains

hashing

collision

Forceful contact between objects

digest · deterministic · avalanche effect

performance

amortization

Gradual debt reduction schedule

scalability

Opposites
data structure access pattern

hash tablelinked list

Sequential nodes with pointers

array · queue · stack · ordered list · tree

data structure organization principle

hash tabletree

Woody perennial plant

B-tree · graph · heap · relational database · tree map

Family

table, tablet, tables, hash, tablets, rehash, tabled, tabling, rehashed

Familiarity
Top 500,000
Profile
Used worldwide · Timeless · Abstract · Rated G