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.
中文

先找到一个分数,再把列表排好

  • 考纲 10.2 要求数组上的两个算法:线性查找和冒泡排序。
  • 线性查找查看每一个单元。值相等时记下下标。始终没有相等,下标就保持 0。
  • 查找不移动数据。排序会移动。

Handout

Log in or create account · ⁨登录或创建账户⁩

IGCSE, A-Level · ⁨IGCSE、A-Level⁩ & AP · ⁨与 AP⁩