# TAOCP 5.2.2 Sorting by Exchanging

> Week 95 of the cracked.guide path: Knuth 5.2.2 Sorting by Exchanging.

Week 95 of 145 on cracked.guide, in TAOCP Vol 3: Sorting and Searching: TAOCP 5.2.2 Sorting by Exchanging. The reading guides budget about 10 hours.

## Key facts {#key-facts}

- [TAOCP 5.2.2 Sorting by Exchanging](https://cracked.guide/guide/knuth-w078-0): Bubble sort and its analysis, Batcher's parallel merge exchange, quicksort with careful analysis of its average case, and radix exchange sort, which partitions on bits.
- Phase: TAOCP Vol 3: Sorting and Searching, weeks 90 to 117.
- Updated October 20, 2026.

## By the end of this week you can {#objectives}

- Trace one bubble sort pass and one quicksort partition by hand.
- Implement quicksort with median-of-three and an insertion sort cutoff.
- Explain how radix exchange partitions keys on their bits.

## This week's tasks {#tasks}

- [TAOCP 5.2.2 Sorting by Exchanging](https://cracked.guide/guide/knuth-w078-0): about 10 hours

Previous: [Week 94](https://cracked.guide/curriculum/week/94) · Next: [Week 96](https://cracked.guide/curriculum/week/96)

---

Source: https://cracked.guide/curriculum/week/95
cracked.guide: A free, dated 145-week path to getting genuinely cracked at programming.
