On this page
  1. Linear & Hashed Structures
  2. Contents
  3. Arrays, Linked Lists, Stacks & Queues
  4. Hash Tables & Collision Resolution

Linear & Hashed Structures

Prev: Complexity & Big-O Notation | Up: algorithms_and_dsa | Next: Trees, Heaps & Graphs
Rel: Python Built-in Data Structures, JS Map & Set
Ref: Wikipedia — Hash Table
Tags: #public #prog #programming #dsa


Contents


Arrays, Linked Lists, Stacks & Queues

Structure Index Access Insert/Delete End Insert/Delete Front Memory Layout
Dynamic Array $O(1)$ $O(1)$ amortized $O(n)$ Contiguous (cache-friendly)
Linked List $O(n)$ $O(1)$ (with tail) $O(1)$ Scattered heap nodes
Ring Buffer / Deque $O(1)$ $O(1)$ amortized $O(1)$ amortized Contiguous circular buffer

Hash Tables & Collision Resolution

A hash table maps keys via hash(key) % capacity to bucket slots for $O(1)$ average lookup, insert, and delete:

Linked from

Related notes