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

Mapa mental

2.1linear and binary searches

Sam Power Inglês

Conteúdo do mapa

2.1linear and binary searches

  1. linear search

    • each item in the list is checked in order
    • the binary search only works if data is in order
    • check 1st value
      • if it is the value you are looking for celebrate and stop
        • ELSE- Move to and check the next value
          • repeat until find value
  2. Binary searches

    • the list needs to bE in order
    • take the middle value
    • compare to the value you are looking for
    • if it is the value you are looking for celebrate and STOP
      • if it is smaller than the one you are looking for, take the values to the right of the middle value.
    • ELSEIF- if it is larger than the one you are looking for
      • take the values to the left of the middle value
  3. Bubble sort

    • bubble sorting - moving through a list repeatedly, swapping elements that are in the wrong order
    • 1. take the 1st element and second element from the list
      • 2. compare them
        • 3. if element 1 >element 2 then - swap them
          • 4. ELSE-do nothing

Informações

Descrição
Mapa Mental sobre 2.1linear and binary searches, criado por Sam Power em 10-01-2019.
Criado por
Sam Power · jan 2019
Atualizado
10 jan 2019
Visualizações
0
Avaliação

Fale Conosco

Sobre o que é sua mensagem?

O que você acha do novo visual?

Você gostou?