Min Max Search
Min Max Search Min max search finds both the minimum and maximum values in one traversal. Instead of running two separate scans, it maintains both extrema simultaneously. This reduces constant overhead and serves as a base for more advanced selection algorithms. Problem Given a sequence $A$ of length $n$, find indices $i$ and $j$ such that $$ A[i] = \min_{0 \le k < n} A[k], \quad A[j] = \max_{0 \le...