study guides for every class
that actually explain what's on your next test
Binary search algorithm
from class:
AP Computer Science A
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:
© 2025 Fiveable Inc. All rights reserved.
AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.