Which sorting algorithm is commonly considered fast in average-case performance?
- A Bubble Sort
- B Quick Sort (correct answer)
- C Selection Sort
- D Insertion Sort
Correct answer: B. Quick Sort
Quick Sort is generally the fastest in average-case performance, at O(n log n).
- Bubble, Selection and Insertion Sort are O(n²) on average.
- Merge Sort is also O(n log n) but needs extra memory.