Fundamental Algorithms8 sections · 291 units
Open in CourseQuiz: Efficient Comparison Sorts
Test your understanding
Check Your Understanding
QuickSort has worst case but is often faster than merge sort in practice. Why?
- A.QuickSort uses less memory since it sorts in place
- B.QuickSort has better cache locality and lower constant factors
- C.QuickSort's worst case rarely happens with random data
- D.All of the above contribute to QuickSort's practical speed