Space Efficient Deterministic Approximation of String Measures

02/19/2020
by   Kuan Cheng, et al.
0

We study approximation algorithms for the following three string measures that are widely used in practice: edit distance, longest common subsequence, and longest increasing sequence. All three problems can be solved exactly by standard algorithms that run in polynomial time with roughly O(n) space, where n is the input length, and our goal is to design deterministic approximation algorithms that run in polynomial time with significantly smaller space. Towards this, we design several algorithms that achieve 1+ϵ or 1-ϵ approximation for all three problems, where ϵ>0 can be any constant. Our algorithms use space n^δ for any constant δ>0 and have running time essentially the same as or slightly more than the standard algorithms. Our algorithms significantly improve previous results in terms of space complexity, where all known results need to use space at least Ω(√(n)). Some of our algorithms can also be adapted to work in the asymmetric streaming model <cit.>, and output the corresponding sequence. Our algorithms are based on the idea of using recursion as in Savitch's theorem <cit.>, and a careful modification of previous techniques to make the recursion work. Along the way we also give a new logspace reduction from longest common subsequence to longest increasing sequence, which may be of independent interest.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
03/01/2021

Lower Bounds and Improved Algorithms for Asymmetric Streaming Edit Distance and Longest Common Subsequence

In this paper, we study edit distance (ED) and longest common subsequenc...
research
02/26/2020

Asymmetric Streaming Algorithms for Edit Distance and LCS

The edit distance (ED) and longest common subsequence (LCS) are two fund...
research
12/01/2021

Approximating Length-Restricted Means under Dynamic Time Warping

We study variants of the mean problem under the p-Dynamic Time Warping (...
research
12/10/2021

How Compression and Approximation Affect Efficiency in String Distance Measures

Real-world data often comes in compressed form. Analyzing compressed dat...
research
07/04/2021

Sublinear-Space Approximation Algorithms for Max r-SAT

In the Max r-SAT problem, the input is a CNF formula with n variables wh...
research
02/18/2020

Faster Algorithms for Orienteering and k-TSP

We consider the rooted orienteering problem in Euclidean space: Given n ...
research
02/26/2020

Streaming with Oracle: New Streaming Algorithms for Edit Distance and LCS

The edit distance (ED) and longest common subsequence (LCS) are two fund...

Please sign up or login with your details

Forgot password? Click here to reset