Mapa mental
Searching Algorithms
Conteúdo do mapa
Searching Algorithms
Linear Search
- Checks each item of an UNORDERED list in turn to see if it is the correct one
- It stops when it either finds the item or reaches the end of the list
Binary Search
- Only works on an ORDERED list
- Step 1 - Find the middle item using (n+1)/2 and round up
- Step 2 - If this is the item, stop
- Step 3 - If not, compare item with middle. If bigger, get rid of lower half, if smaller, get rid of upper half
- Step 4 - Repeat steps 1 - 3 until you find the item
Informações
- Descrição
- Mapa Mental sobre Searching Algorithms, criado por emILy RodD em 08-10-2018.
- Criado por
- emILy RodD
- Visualizações
- 0
- Avaliação