Skip to content · ⁨ข้ามไปยังเนื้อหา⁩

Sorting: selection and insertion sort · ⁨Sorting: Selection และ Insertion sort⁩

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.
ไทย

การเรียง array เป็นระเบียบ

  • Sorting หมายถึงการจัดค่าของ array เป็นลำดับ โดยปกติจากน้อยไปมาก
  • ในการสอบ AP CSA คุณต้องสามารถ เขียน และ trace การจัดสองแบบ: selection sort และ insertion sort
  • คุณยังต้อง trace (แต่ไม่ต้องเขียน) sorting第三种: merge sort. เราจะดูทั้งหมดสามแบบที่นี่

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

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

IGCSE, A-Level & AP