Mapa mental
Unit 1
Contenido del mapa
Unit 1
SEARCHING ALGORITHMS
- Bubble sort
- Compare the first and second element from the list.
- If first number is more than second number, swap them.
- If not, go to second number and repeat.
- If first number is more than second number, swap them.
- In a list of n numbers, n^2 comparisons will need to be made
- This is slow and inefficient for more than a few items.
- Compare the first and second element from the list.
- Linear search
- Binary search
- Merge sort
- This method is fast but includes many steps to uses more memory space
- The elements are split into individual lists.
- The first elements in each list are compared
- The smallest is put into a new list
- Repeat until merged
- A recursive function is used to allow the lists to break down and merge.
- Repeat until merged
- The smallest is put into a new list
- The first elements in each list are compared
- Bubble sort
Información
- Descripción
- Mapa Mental sobre Unit 1, creado por Ina Sharma el 10/10/2019.
- Creado por
- Ina Sharma · oct 2019
- Actualizado
- 3 dic 2019
- Visitas
- 1
- Valoración