Phase 4Days 18-21

Sorting Techniques

Implement the classic sorts, understand invariants, and use custom comparators fluently

Phase Goal

Know how sorting really works and wield sorting as a preprocessing weapon.

Progress

Day 18: Quadratic sorts & the idea of an invariant

Day 19: Merge sort & divide and conquer

Day 20: Quick sort & quickselect

Day 21: Non-comparison sorts & sorting in practice

Phase Complete!

After this phase, you'll be able to:

  • Quadratic sorts & the idea of an invariant
  • Merge sort & divide and conquer
  • Quick sort & quickselect
  • Non-comparison sorts & sorting in practice

After Phase 4, explain a core invariant, reconstruct a solution after a delay, diagnose a bug, and solve one unlabelled variation. Repair a failed prerequisite before advancing; record help separately from independent work.