Skip to content · ⁨Lompat ke konten⁩

Linear search and bubble sort · ⁨Pencarian linear dan bubble sort⁩

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

Temukan satu nilai, lalu urutkan daftar

  • Topik silabus 10.2 meminta dua algoritma pada array: pencarian linear dan bubble sort.
  • Pencarian linear memeriksa setiap sel. Ingat indeks saat nilai cocok. Jika tidak pernah cocok, indeks tetap 0.
  • Pencarian tidak memindahkan nilai. Pengurutan memindahkannya.

Handout · ⁨Lembar Kerja⁩

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

IGCSE, A-Level & AP