Separating sortedness from stability

Records arrived in the order A,B,C,DA,B,C,D, with numerical keys 4,9,4,124,9,4,12, respectively. During an ascending merge sort, the final sorted halves are [(4,A),(9,B)][(4,A),(9,B)] and [(4,C),(12,D)][(4,C),(12,D)].


The merge selects the right record whenever the current keys are equal. Assume all other merge operations are implemented correctly using the standard array method. Select every true statement.

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Merge Sort Questions: