Mapa mental
Search and Sort
Contenido del mapa
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
Información
- Descripción
- Mapa Mental sobre Search and Sort, creado por Matthew McCrory el 21/03/2018.
- Creado por
- Matthew McCrory
- Visitas
- 0
- Valoración