Mapa mental
Bubble Sort
Contenido del mapa
Bubble Sort
How it works?
- You need to look at the first two items , if they in right order , we don't do anything, if they in wrong order, swap them, move to the next pair and repeat previous steps. Until you get to the end of the list, it calls pass. Until steps again until the are no swaps
Cons
- It's a simple algorithm. It's an efficient way to check if a list is already in order. Doesn't use very much memory.
Pros
- It's an inefficient way to sort a list - for a list of n items , the worst case scenario. Does not cope well with a large list of items.
Insertion Sort
- How it works?
- Look at the second item on the list. Compare it to all items before it. And insert number into right place. Repeat this until last item has been inserted into the correct place
- How it works?
Información
- Descripción
- Mapa Mental sobre Bubble Sort, creado por Denys Demydenko el 01/12/2022.
- Creado por
- Denys Demydenko · dic 2022
- Actualizado
- 9 dic 2022
- Visitas
- 0
- Valoración