الانتقال إلى المحتوى

Searching: linear and binary

English

Two ways to search

  • Searching means finding where a value is in an array (or saying it is not there).
  • Linear search checks every item one by one. It works on any array.
  • Binary search is much faster but needs the array to be sorted first.

ورقة عمل

تسجيل الدخول أو إنشاء حساب

IGCSE, A-Level & AP