Mental Model
A peak element is one that is bigger than its neighbors. We use binary search to quickly find such an element by checking the middle and deciding which half to search next.
Analogy: Imagine climbing a mountain range where you want to find a peak. Instead of walking the whole range, you look at the middle point and decide if you should go left or right based on which side is higher, because a peak must exist in that direction.
Array: [1, 3, 2, 4, 1] Indexes: 0 1 2 3 4 Initial view: start -> 0, end -> 4 mid -> 2 (value 2) Neighbors: left=3, right=4