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

Linear search and bubble sort · ⁨Tìm kiếm tuyến tính và sắp xếp nổi bọt⁩

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.
Tiếng Việt

Tìm một dấu chấm, sau đó sắp xếp danh sách

  • Chương trình thi 10.2 yêu cầu hai thuật toán trên mảng: tìm kiếm tuyến tính và sắp xếp nổi bọt.
  • Tìm kiếm tuyến tính xem xét từng ô. Nhớ chỉ số khi giá trị khớp. Nếu không bao giờ khớp, chỉ số vẫn giữ nguyên 0.
  • Tìm kiếm không di chuyển các giá trị. Sắp xếp thì có.

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