Skip to content · ⁨Saltar al contenido⁩

Sorting: selection and insertion sort · ⁨Ordenación: selección e inserción⁩

English

Putting an array in order

  • Sorting means putting the values of an array in order, usually from small to large.
  • On the AP CSA exam you must be able to write and trace two sorts: selection sort and insertion sort.
  • You also need to trace (but not write) a third sort: merge sort. We look at all three here.
Español

Ordenar un array

  • Ordenar significa colocar los valores de un array en orden, generalmente de menor a mayor.
  • En el examen AP CSA debes ser capaz de escribir y rastrear dos tipos de ordenamiento: ordenamiento por selección y ordenamiento por inserción.
  • También necesitas rastrear (pero no escribir) un tercer tipo de ordenamiento: ordenamiento por fusión. Revisamos los tres aquí.

Handout · ⁨Material⁩

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

IGCSE, A-Level & AP