Mind map
Sorting
Map content
Sorting
Insertion Sorts
- Straight
- Like sorting a deck of cards in your hand Average = O(n^2)
- Straight
Exchange sorts
- Bubble
- Smallest item "bubbles up" to top of list Average = O(n^2)
- Quicksort
- Recursive Select pivot that divides elements into 2 sets (smaller or larger than p). Reinsert p into correct position. Call method again. Average = O(n log(n))
- Bubble
Selection Sorts
- Straight
- Find largest (or smallest) and swap with the beginning or end of a list O(n^2)
- Straight
Merge Sorts
- Recursive 2 sorted sequences can be merged into one larger sorted sequence O(n log(n))
Distribution Sorts
- Bucket
- O(n) Main idea: element to be sorted come from a relatively small, finite universe
- Radix
- Aka least-significant-digit-first radix sort Extention of bucket sort with larger universes
- Bucket
Images and files in the map
Information
- Description
- Mind Map on Sorting, created by Cameron Fisher on 11/12/2016.
- Created by
- Cameron Fisher
- Views
- 0
- Rating