Data Structures & Algorithms
39 notes
Some notes are currently available only in Chinese. English translations are shown when available.
- Data Structures and Algorithmshistorical
A practical framework for choosing data structures and algorithms by operations, constraints, complexity, and memory/locality.
- Arrayhistorical
Contiguous indexed storage, constant-time random access, resizing, insertion/deletion costs, and cache locality.
- Hash Table / Hash Maphistorical
Hashing, buckets, collisions, load factor, resizing, and expected versus worst-case lookup complexity.
- Linked Listhistorical
Singly/doubly linked lists, insertion/deletion, traversal, pointer techniques, and locality trade-offs.
- Queuehistorical
FIFO queues, dequeues, circular buffers, bounded queues, and priority-queue distinctions.
- Sethistorical
Uniqueness collections implemented with hashing, balanced trees, bitmaps, or specialized structures.
- Stackhistorical
LIFO storage, push/pop/peek operations, recursion, parsing, monotonic stacks, and implementation choices.
- Tree Data Structureshistorical
Rooted trees, binary trees, BSTs, balanced trees, traversals, heaps, tries, and B-tree families.
- Red-Black Treehistorical
A self-balancing binary search tree with color invariants that keep height logarithmic.
- Skip Listhistorical
Probabilistic ordered structure with multiple forward-pointer levels and expected logarithmic search/update.