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

Please sign up or login with your details

Forgot password? Click here to reset