Data Structures & Algorithms
39 notes
Some notes are currently available only in Chinese. English translations are shown when available.
- Heap Sorthistorical
In-place comparison sorting using heap construction followed by repeated root extraction.
- Insertion Sorthistorical
Stable in-place insertion into a sorted prefix, efficient for small or nearly sorted inputs.
- Quick Sorthistorical
Partition-based sorting with O(n log n) expected time, pivot selection, and worst-case safeguards.
- Selection Sorthistorical
Repeatedly selecting the minimum/maximum with quadratic comparisons and few swaps.
- Sorting Algorithms Overviewhistorical
Comparing sorting algorithms by time, space, stability, adaptiveness, locality, and data constraints.
- 4.1 Compare-and-Swap (CAS)historical
The basic CAS semantics, use cases, ABA problem, and CPU atomic-instruction implementation.
- 4.2 Lock-Free Queuehistorical
A historical CAS-based lock-free queue implementation note and its safe-memory-reclamation boundary.