Skip to content · ⁨Saltar al contenido⁩

Linear search and bubble sort · ⁨Búsqueda lineal y ordenamiento burbuja⁩

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.
Español

Encuentra un valor, luego ordena la lista

  • El tema 10.2 del programa de estudios solicita dos algoritmos sobre una matriz: una búsqueda lineal y una ordenación burbuja.
  • Una búsqueda lineal revisa cada celda. Recuerda el índice cuando el valor coincide. Si nunca coincide, el índice permanece en 0.
  • La búsqueda no mueve los valores. La ordenación sí lo hace.

Handout · ⁨Material⁩

Log in or create account · ⁨Iniciar sesión o crear cuenta⁩

IGCSE, A-Level & AP