| Approach | Notes |
|---|---|
| Linear scan | Try every possible divider position and compute table height for each; O(W * (N1 + N2)) where W is total width and N1, N2 are text lengths. Simple to implement but slower than binary/ternary search. |
| Ternary search | Works cleanly on unimodal functions; slightly more intuitive than binary search when the monotonicity argument is not immediately obvious, but requires verifying the unimodal property. |