O GoConqr está de visual novo! Conte para nós o que você achou.

Mapa mental

Searching Algorithms

Sam Burton Inglês

Conteúdo do mapa

Searching Algorithms

  1. Linear Search

    • A linear search doesn't need the numbers to be in order to be able to search
      • A linear search is completed by going along each space and checking for the target e.g
        • 1,2,3,4,5,6
          • The target is 3
            • Search space 0, search space 1, search space 2, stop at space 2
  2. Binary search

    • A binary search needs the numbers to be in order, that can be done by using 1 of many sorts e.g bubble sort, insertion sort and merge sort
      • To do a binary search you have to sort the units e.g numbers into order and then see if your number is bigger or smaller then the number in the middle, if it is bigger for example you then check the middle number of all the numbers in front of the original middle number and repeat the process until you find the middle number
  3. Pros and cons of the two methods

    • Pros of linear are that you don't have to sort the numbers, saving memory and space
    • Pros of a binary search are that it is quicker and more efficient, providing the numbers are already sorted
  4. Example question: 1,2,3,6,7,8,9 Find 7 using a binary sort

Informações

Descrição
Mapa Mental sobre Searching Algorithms, criado por Sam Burton em 19-09-2018.
Criado por
Sam Burton
Visualizações
0
Avaliação

Fale Conosco

Sobre o que é sua mensagem?

O que você acha do novo visual?

Você gostou?