A database containing a sorted index of customer IDs uses a binary search algorithm to locate a specific ID.
Describe how the binary search algorithm operates to locate the target customer ID in the sorted list, explaining how the search space is reduced at each step and how the algorithm determines if the ID is not present.