Skip to content · ⁨ข้ามไปยังเนื้อหา⁩
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 ของหลักสูตรต้องการอัลกอริทึมสองแบบสำหรับ array: linear search และ bubble sort
  • Linear search ตรวจสอบทุกเซลล์ จำ index ไว้เมื่อค่าตรงกัน ถ้าไม่ตรงกับใครเลย index จะยังคงเป็น 0
  • การค้นหาไม่ย้ายค่า แต่การจัดอันดับจะย้ายค่า

Handout · ⁨เอกสารประกอบการเรียน⁩

Log in or create account · ⁨เข้าสู่ระบบหรือสร้างบัญชี⁩

IGCSE, A-Level & AP