Improved Submatrix Maximum Queries in Monge Matrices
Abstract
We present efficient data structures for submatrix maximum queries in Monge matrices and Monge partial matrices. For n× n Monge matrices, we give a data structure that requires O(n) space and answers submatrix maximum queries in O( n) time. The best previous data structure [Kaplan et al., SODA`12] required O(n n) space and O(2 n) query time. We also give an alternative data structure with constant query-time and O(n1+) construction time and space for any fixed <1. For n× n partial Monge matrices we obtain a data structure with O(n) space and O( n · α(n)) query time. The data structure of Kaplan et al. required O(n n · α(n)) space and O(2 n) query time. Our improvements are enabled by a technique for exploiting the structure of the upper envelope of Monge matrices to efficiently report column maxima in skewed rectangular Monge matrices. We hope this technique can be useful in obtaining faster search algorithms in Monge partial matrices. In addition, we give a linear upper bound on the number of breakpoints in the upper envelope of a Monge partial matrix. This shows that the inverse Ackermann α(n) term in the analysis of the data structure of Kaplan et. al is superfluous.
Turn this paper into a lesson
ArcXiv compiles a structured reading guide from this paper's metadata: plain-English importance, contributions, prerequisite concepts, which sections to read first, flashcards, and a quiz. Grounded in the abstract, never invented.