Overview
Binary Search in Answer Space is a search method that uses ordering, indexing, predicates, or distance bounds to eliminate candidates. It is a good fit when the collection has enough structure to avoid checking every candidate.
Binary Search in Answer Space uses ordering or monotonic structure to eliminate candidates.
Compact metadata for implementation and discovery.
Binary Search in Answer Space is a search method that uses ordering, indexing, predicates, or distance bounds to eliminate candidates. It is a good fit when the collection has enough structure to avoid checking every candidate.
Quick facts
Runtime and memory behavior at a glance.
Best
O(1)
Average
O(log n)
Worst
O(n)
Space
O(1)
if feasible(mid), high = mid else low = mid + 1Uses a monotonic predicate to move toward the smallest feasible answer.
Show candidate regions shrinking as comparisons or distance tests eliminate options.
Binary Search in Answer Space operates in O(log n) time and O(1) space within the Search family. Key governing relation: if feasible(mid), high = mid else low = mid + 1. Often compared with Binary Search and Linear Search.
What each reference supports for this entry.
Algorithms textbook support for binary search over monotone decision predicates.
Open sourceGood next jumps from the relationship graph, ranked for useful discovery.
Binary search in answer space specializes binary search for monotone feasibility predicates rather than array positions.