Skip to content · ⁨الانتقال إلى المحتوى⁩

Sorting: selection and 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.
العربية

ترتيب مصفوفة

  • الترتيب يعني وضع قيم المصفوفة في ترتيب، عادة من الصغير إلى الكبير.
  • في امتحان AP CSA، يجب أن تتمكن من كتابة وتتبع نوعين من الترتيب: ترتيب الاختيار وترتيب الإدراج.
  • تحتاج أيضًا إلى تتبع (ولكن ليس كتابة) ترتيب ثالث: ترتيب الدمج. سننظر إلى الثلاثة هنا.

Handout · ⁨ورقة عمل⁩

Log in or create account · ⁨تسجيل الدخول أو إنشاء حساب⁩

IGCSE, A-Level & AP