Study
CSC-401 route
Unit 5 · Lesson 2 of 4 18 min

Quicksort

Partition first, sort later, and let the pivot decide the cost.

What this unit covers

Unit 5: Divide and Conquer

  1. 1 MergesortSplit, sort, and put back together in linear time. · 17 min
  2. 2 QuicksortPartition first, sort later, and let the pivot decide the cost. · 18 min
  3. 3 Integer Multiplication and Strassen's Matrix MultiplicationRegrouping one multiplication into three smaller ones, and Strassen's seven matrix products instead of eight, both buy a smaller exponent than the obvious algorithm's. · 19 min
  4. 4 Tree Traversals and the Closest-Pair ProblemSplitting a tree at its root, and splitting a plane at its median line. · 19 min