- Finding minimum elements in every row of an array
- No other information: Brute force O(mn) is optimal
- Monotone: Minima in higher rows are above/left of minima in later rows
- Filtering: row minima in monotone arrays in O(m + n log n) time
- Totally monotone: Every minor is monotone
- SMAWK: Reducing wide totally monotone arrays in O(n) time
- Alternately reducing and filtering: Row minima of totally monotone array in O(m+n) time.
…Read more
Less…
- Tags
-