Mapa mental
2.1 searching and sorting algorithms
Conteúdo do mapa
2.1 searching and sorting algorithms
binary search
- the algorithm
- calculate a mid point in the data set
- check if that is the item to be found
- if not....
- if the item to be found is lower than the mid point repeat on the left half of the data set.
- if the item to be found is greater than the mid point repeat on the right
- if the item to be found is lower than the mid point repeat on the left half of the data set.
- if not....
- check if that is the item to be found
- calculate a mid point in the data set
- the algorithm
linear search
- the algorithm
- starting from the beginning of a data set each item is checked in turn to see if it is the one being searched for.
- requirements/ efficiency
- doesn't require the data set to be in order
- will work on any type of storage device
- doesn't require the data set to be in order
- the algorithm
bubble sort
- the algorithm
- sorts an unordered list of items
- it compares each item with the next one and swaps them if they are out of order.
- it compares each item with the next one and swaps them if they are out of order.
- sorts an unordered list of items
- the algorithm
Informações
- Descrição
- Mapa Mental sobre 2.1 searching and sorting algorithms, criado por jasmine preece em 12-11-2021.
- Criado por
- jasmine preece
- Visualizações
- 0
- Avaliação