Mind map
Search and Sort
Map content
Search and Sort
Sort
- Merge
- Splits list in half
- Repeats until all lists only contain one item
- Merge pairs of sub-lists, sorting items into right order
- Repeats until all lists are merged together
- Merge pairs of sub-lists, sorting items into right order
- Repeats until all lists only contain one item
- Pros
- More efficient and quicker
- Consistent running time
- Cons
- Slower for small lists
- Uses more memory
- Splits list in half
- Insertion
- Looks at second item in list
- Compares it to all items before it and inserts into right place
- Repeats until the last number has been inserted into the correct place
- Compares it to all items before it and inserts into right place
- Cons
- Doesn't work well with large lists
- Pros
- Intuituve
- Copes well with small lists
- Looks at second item in list
- Bubble
- Goes through list ordering pairs
- Pros
- Cons
- Doesn't cope well with large lists
- Merge
Search
- Linear
- Unordered list
- Goes through each item one-by-one
- Binary
- Ordered list
- Splits list in two iteratively
- Linear
Information
- Description
- Mind Map on Search and Sort, created by Matthew McCrory on 21/03/2018.
- Created by
- Matthew McCrory
- Views
- 0
- Rating