Skip to content · ⁨Pular para o conteúdo⁩

Linear search and bubble sort · ⁨Busca linear e ordenação bolha⁩

English

Find one mark, then order the list

  • Syllabus topic 10.2 asks for two algorithms on an array: a linear search and a bubble sort.
  • A linear search looks at every cell. Remember the index when the value matches. If it never matches, the index stays 0.
  • Searching does not move the values. Sorting does.
Português

Encontre uma marca, então organize a lista

  • O tópico do programa 10.2 pede dois algoritmos em uma matriz: uma busca linear e uma ordenação bolha.
  • Uma busca linear olha cada célula. Lembre-se do índice quando o valor corresponder. Se nunca corresponder, o índice permanece 0.
  • Buscar não move os valores. Ordenar move.

Handout · ⁨Material de apoio⁩

Log in or create account · ⁨Entrar ou criar conta⁩

IGCSE, A-Level & AP