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