๐Ÿ’ปap computer science a review

Binary search algorithm

Written by the Fiveable Content Team โ€ข Last updated September 2025
Verified for the 2026 exam
Verified for the 2026 examโ€ขWritten by the Fiveable Content Team โ€ข Last updated September 2025

Definition

The binary search algorithm is an efficient searching technique used on sorted arrays or lists. It repeatedly divides the search space in half by comparing the target value with the middle element until it finds a match or determines that the item does not exist.

"Binary search algorithm" also found in:

Binary search algorithm Definition - AP Computer Science A Key Term | Fiveable