2.1 Merge Sort Flashcards

1
Q

How does a merge sort work?

A
  • Uses a divide and conquer method
  • Creates two or more identical sub-problems from the largest problem. solving them individually
  • Combines their solutions to solve the bigger problems
  • Data set is repeatedly split in half until each item is in its own list
  • Adjacent lists are then merged back together
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what are the features of a merge sort?

A
  • Works very well for large data sets
  • A very efficient method of performing a sort
How well did you know this?
1
Not at all
2
3
4
5
Perfectly