Skip to content · ⁨Lompat ke konten⁩

Sorting: selection and insertion sort · ⁨Pengurutan: seleksi dan sisipan⁩

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.
Bahasa Indonesia

Mengurutkan array

  • Pengurutan berarti menyusun nilai-nilai dalam array secara berurutan, biasanya dari kecil ke besar.
  • Pada ujian AP CSA, Anda harus mampu menulis dan melacak dua jenis pengurutan: pengurutan pemilihan (selection sort) dan pengurutan sisipan (insertion sort).
  • Anda juga perlu melacak (tetapi tidak menulis) pengurutan ketiga: pengurutan penggabungan (merge sort). Kami membahas ketiganya di sini.

Handout · ⁨Lembar Kerja⁩

Log in or create account · ⁨Masuk atau buat akun⁩

IGCSE, A-Level & AP