Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight
Medium
- Partition around a pivot: smaller items left, larger right; the pivot lands in its final place.
Asked in a real exam
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
- Shuffle first, partition, then sort each part recursively.
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight
High
- Best case: ~N lg N compares. Worst case (already sorted, no shuffle): ~N²/2.
Asked in a real exam
🎯 How this can come up · 1 question
MCQ
Without shuffling, quicksort (first element as pivot) is slowest on:
Quiz 2.
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight
High
- Average ~1.39 N lg N compares; in place; not stable.
🎯 How this can come up · 1 question
MCQ
Quicksort’s average running time is:
Correct: O(n log n).
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
Exam weight Low
- Summary: selection n²/2, insertion n²/4 average, merge N lg N (stable, extra space), quick 1.39 N lg N (in place, fastest in practice).
Exam weight Low
Exam weight Low
Exam weight Low
No slides match this filter.