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

Linear search and bubble sort · ⁨البحث الخطي وفرز الفقاعات⁩

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 خوارزميتين على مصفوفة: بحث خطي وفرز فقاعي.
  • البحث الخطي يفحص كل خلية. تذكر الفهرس عندما يتطابق القيمة. إذا لم تتطابق أبداً، يبقى الفهرس 0.
  • البحث لا ينقل القيم. الفرز يقوم بذلك.

Handout · ⁨ورقة عمل⁩

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

IGCSE, A-Level & AP