Papers
Topics
Authors
Recent
Search
2000 character limit reached

Core-Sparse Monge Matrix Multiplication: Improved Algorithm and Applications

Published 8 Aug 2024 in cs.DS | (2408.04613v1)

Abstract: The task of min-plus matrix multiplication often arises in the context of distances in graphs and is known to be fine-grained equivalent to the All-Pairs Shortest Path problem. The non-crossing property of shortest paths in planar graphs gives rise to Monge matrices; the min-plus product of n×nn\times n Monge matrices can be computed in O(n<sup>2)O(n<sup>2) time. Grid graphs arising in sequence alignment problems, such as longest common subsequence or longest increasing subsequence, are even more structured. Tiskin [SODA'10] modeled their behavior using simple unit-Monge matrices and showed that the min-plus product of such matrices can be computed in O(nlogn)O(n\log n) time. Russo [SPIRE'11] showed that the min-plus product of arbitrary Monge matrices can be computed in time O((n+δ)log<sup>3</sup>n)O((n+\delta)\log<sup>3</sup> n) parameterized by the core size δ\delta, which is O(n)O(n) for unit-Monge matrices. In this work, we provide a linear bound on the core size of the product matrix in terms of the core sizes of the input matrices and show how to solve the core-sparse Monge matrix multiplication problem in O((n+δ)logn)O((n+\delta)\log n) time, matching the result of Tiskin for simple unit-Monge matrices. Our algorithm also allows O(logδ)O(\log \delta)-time witness recovery for any given entry of the output matrix. As an application of this functionality, we show that an array of size nn can be preprocessed in O(nlog<sup>3</sup>n)O(n\log<sup>3</sup> n) time so that the longest increasing subsequence of any sub-array can be reconstructed in O(l)O(l) time, where ll is the length of the reported subsequence; in comparison, Karthik C. S. and Rahul [arXiv'24] recently achieved O(l+n<sup>1/2log<sup>3</sup></sup>n)O(l+n<sup>{1/2}\log<sup>3</sup></sup> n)-time reporting after O(n<sup>3/2log<sup>3</sup></sup>n)O(n<sup>{3/2}\log<sup>3</sup></sup> n)-time preprocessing. Our faster core-sparse Monge matrix multiplication also enabled reducing two logarithmic factors in the running times of the recent algorithms for edit distance with integer weights [Gorbachev & Kociumaka, arXiv'24].

Summary

No one has generated a summary of this paper yet.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Continue Learning

We haven't generated follow-up questions for this paper yet.