Enrol to start learning
Reading is open to everyone. Enrolling is free, and it is what unlocks the audio lessons, practice tests and progress tracking.
17.1.3. Stability in Merge Sort
This section
Practice test
11 questions on this section. Wrong answers show you what to read again.
Sign up to take itWhole chapter
Revision test
Mixed questions from across the chapter. Your answers get marked.
Sign up to take itQuick
Flashcard drill
3 cards from this lesson. Good the night before a test.
Try these first
- 1.
What is a stable sort?
Hint
Think about sorting where two identical scores are at stake.
- 2.
Name one stable sorting algorithm.
Hint
Recall an algorithm that divides and conquers.
- 3.
What defines a stable sorting algorithm?
- A. It sorts data quickly.
- B. It preserves original order of equal elements.
- C. It uses more memory.
Hint
Think about what happens to identical items after sorting.
- 4.
Is merge sort always stable?
- True
- False
Hint
Reflect on how merge sort handles equal elements.
- 5.
Consider a dataset of students' names and scores. You first sorted it alphabetically by name, and then by score. If you notice that some students have the same scores, explain how to implement a stable sort to maintain original alphabetical order.
Hint
Think back to how merge operations handle ties.
- 6.
Discuss how the context of data storage affects your choice of sorting algorithms. What criteria should you consider when sorting large datasets that's stored across multiple locations?
Hint
Reflect on the properties of the algorithms we've studied.
Exercises
Total Questions
2
Estimated Time
4 min
Passing Score
70%
Instructions
- Read each question carefully
- You can use hints if you need help
- Complete all questions before submitting
4 more questions available
Enrol freeQuiz
Total Questions
2
Estimated Time
4 min
Passing Score
70%
Instructions
- Read each question carefully
- You can use hints if you need help
- Complete all questions before submitting
1 more question available
Enrol freeChallenge Problems
Total Questions
2
Estimated Time
4 min
Passing Score
70%
Instructions
- Read each question carefully
- You can use hints if you need help
- Complete all questions before submitting