Skip to content · ⁨コンテンツへスキップ⁩

Linear search and 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.
日本語

1点を特定してリストを並べ替える

  • シラバストピック10.2では、配列に対する2つのアルゴリズム、すなわち線形探索とバブルソートが求められています。
  • 線形探索ではすべてのセルを確認します。値が一致したときの添字を記録してください。一致しない場合は、添字は0のままです。
  • 探索は値を移動しません。ソートは移動させます。

Handout · ⁨プリント⁩

Log in or create account · ⁨ログインまたはアカウント作成⁩

IGCSE, A-Level & AP