Question: Which sorting algorithm would you not use under the following conditions? 1. The sort must be stable. 2. Data are in descending order by key.
Which sorting algorithm would you not use under the following conditions? 1. The sort must be stable. 2. Data are in descending order by key. 3. Data are in ascending order by key. 4. Space is very limited.
Step by Step Solution
3.36 Rating (159 Votes )
There are 3 Steps involved in it
1 The sort must be stable Stability in sorting algorithms means that when two elements have equal ke... View full answer
Get step-by-step solutions from verified subject matter experts
