Skip to content · ⁨Bỏ qua nội dung⁩

Sorting: selection and insertion sort · ⁨Sắp xếp: selection sort và 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.
Tiếng Việt

Sắp xếp một mảng

  • Sắp xếp nghĩa là đặt các giá trị của mảng theo thứ tự, thông thường là từ nhỏ đến lớn.
  • Trong kỳ thi AP CSA, bạn phải biết viết và vẽ sơ đồ (trace) hai kiểu sắp xếp: sắp xếp theo lựa chọn (selection sort) và sắp xếp chèn (insertion sort).
  • Bạn cũng cần vẽ sơ đồ (nhưng không cần viết) một kiểu sắp xếp thứ ba: sắp xếp gộp (merge sort). Chúng ta xem xét cả ba ở đây.

Handout · ⁨Tài liệu⁩

Log in or create account · ⁨Đăng nhập hoặc tạo tài khoản⁩

IGCSE, A-Level & AP