An automated warehouse retrieval system stores inventory in a single long row of numbered bays, sorted in ascending order of their numerical product codes. To locate a specific target product code within this sorted list, the system's software executes a binary search algorithm.
Describe how this binary search algorithm operates to find the location of the target product code.