Ternary Search: Unimodal Function Search
Binary search finds elements in sorted arrays. Ternary search solves a different problem: finding the maximum or minimum of a unimodal function. While binary search asks ‘is my target to the left or…
Read more →