Answer to Question #52161 in Programming & Computer Science for irebami

Question #52161
Which of the following sorting algorithms maintain the relative order of records with equal keys?

Quicksort
Stable
Mergesort
Unstable
1
Expert's answer
2015-04-25T12:06:55-0400
b.Stable
Stability: stable sorting algorithms maintain the relativeorder of records with equal keys (i.e. values). That is, a sorting algorithm is stable if whenever there are two records R and S with the same key and with R appearing before S in the original list, R will appear before S in the sorted list.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS