Mapa mental
Sorting
Contenido del mapa
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
Imágenes y archivos del mapa
Información
- Descripción
- Mapa Mental sobre Sorting, creado por Cameron Fisher el 11/12/2016.
- Creado por
- Cameron Fisher
- Visitas
- 0
- Valoración