The primary disadvantage of Quick Sort is that it is not a stable sorting algorithm.
Questions & Step-by-step Solutions
1 item
Q
Q: What is the primary disadvantage of Quick Sort?
Solution: The primary disadvantage of Quick Sort is that it is not a stable sorting algorithm.
Steps: 4
Step 1: Understand what Quick Sort is. Quick Sort is a method used to arrange items in a specific order, like numbers or words.
Step 2: Learn about stability in sorting. A stable sorting algorithm keeps items with the same value in the same order they were in before sorting.
Step 3: Identify the primary disadvantage of Quick Sort. Quick Sort does not guarantee that items with the same value will stay in their original order after sorting.
Step 4: Conclude that because Quick Sort is not stable, it can change the order of equal items, which is its main disadvantage.