Engineer Atlas
OverviewLearnVisualizerAlgorithm FinderPatternsComplexityRoadmapPracticeInterview
OverviewLearnVisualizerAlgorithm FinderPatternsComplexityRoadmapPracticeInterviewCheat SheetCompare
Data Structures
  • Fundamentals
  • Stack & Queue
  • Hashing
  • Trees
  • Heaps
  • Graphs
  • Specialized Structures
Algorithms
  • Searching
  • Sorting
  • Two Pointers
  • Sliding Window
  • Prefix Techniques
  • Recursion & Backtracking
  • Divide & Conquer
  • Greedy
  • Dynamic Programming
  • Graph Algorithms
  • String Algorithms
  • Bit Manipulation
  • Mathematical Algorithms
Learn/Data Structures/Specialized Structures
Specialized

Specialized Structures

Union-Find, sparse tables, Bloom filters, caches and skip lists.

Union-Find (Disjoint Set Union)
▶ viz

Tracks a partition of elements into disjoint sets with near-constant-time find and union, using path compression and union by rank.

O(α(n)) search · O(n) space
Sparse Table
▶ viz

A precomputed table of answers over power-of-two-length blocks that answers idempotent range queries (min, max, gcd) in O(1) after O(n log n) build, for static arrays.

— search · O(n log n) space
Bloom Filter

A bit array plus k hash functions that answers "possibly in the set" or "definitely not" in O(k) with a tiny memory footprint and no false negatives.

O(k) search · O(m) space
LRU Cache
▶ viz

A fixed-capacity key-value store that evicts the least recently used entry, with O(1) get and put via a hash map plus a doubly linked list.

O(1) search · O(capacity) space
LFU Cache

A fixed-capacity cache that evicts the entry with the lowest access count (ties broken by least recent), in O(1) using a map of frequency buckets.

O(1) search · O(capacity) space
Skip List

A sorted linked list with randomised express lanes stacked on top, giving expected O(log n) search, insert, and delete without any rebalancing.

O(log n) search · O(n) space
Engineer Atlas
GitHub·LinkedIn