This visual trace shows how to search a target in a rotated sorted array using a modified binary search. We start with left and right pointers at the array ends. We find the middle element and check if it matches the target. If not, we check which half of the array is sorted by comparing nums[left] and nums[mid]. Depending on which half is sorted and where the target lies, we update left or right pointers to narrow the search. This repeats until the target is found or the pointers cross, meaning the target is not present. The execution table tracks each step's pointers, values, and decisions. The variable tracker shows how left, right, and mid pointers change. Key moments clarify why we check sorted halves and how pointer updates work. The quiz tests understanding of pointer values and loop exit conditions. This method efficiently finds the target in O(log n) time even if the array is rotated.