We present efficient data structures for submatrix maximum queries in Monge matrices and Monge partial matrices. For n x n Monge matrices, we give a data structure that requires O(n) space and answers submatrix maximum queries in O(log n) time. The best previous data structure [Kaplan et al., SODA'12] required O(n log n) space and O(log(2) n) query time. We also give an alternative data structure with constant query-time and O(n(1+epsilon)) construction time and space for any fixed epsilon < 1. For n x n partial Monge matrices we obtain a data structure with O(n) space and O(log n . alpha(n)) query time. The data structure of Kaplan et al. required O(n log n . alpha(n)) space and O(log(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 will 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 alpha(n) factor in the analysis of the data structure of Kaplan et. al is superfluous.
机构:
Tel Aviv Univ, Sch Comp Sci, IL-69978 Tel Aviv, IsraelTel Aviv Univ, Sch Comp Sci, IL-69978 Tel Aviv, Israel
Kaplan, Haim
Mozes, Shay
论文数: 0引用数: 0
h-index: 0
机构:
Interdisciplinary Ctr, Efi Arazi Sch Comp Sci, IL-46150 Herzliyya, IsraelTel Aviv Univ, Sch Comp Sci, IL-69978 Tel Aviv, Israel
Mozes, Shay
Nussbaum, Yahav
论文数: 0引用数: 0
h-index: 0
机构:
Tel Aviv Univ, Sch Comp Sci, IL-69978 Tel Aviv, IsraelTel Aviv Univ, Sch Comp Sci, IL-69978 Tel Aviv, Israel
Nussbaum, Yahav
Sharir, Micha
论文数: 0引用数: 0
h-index: 0
机构:
Tel Aviv Univ, Sch Comp Sci, IL-69978 Tel Aviv, Israel
Courant Inst Math Sci, New York, NY USATel Aviv Univ, Sch Comp Sci, IL-69978 Tel Aviv, Israel