Binary search is a method for finding a target in a sorted list by repeatedly narrowing the search interval. A trace asks you to show how the interval changes at each step and what happens to the middle element.
Your final response should usually be the result of the search trace written clearly: the found position, the number of steps, or the final interval/state after the last comparison. If there are repeated values or edge cases, keep the exact outcome shown by the search process.
Make sure each step follows the previous one logically, and that the interval always gets smaller. If the target is found, the final middle value must equal it; if not, the search should end with no valid interval left.
© 2023-2026 AI MATH COACH