Asymmetric Streaming Algorithms for Edit Distance and LCS

02/26/2020
by   Alireza Farhadi, et al.
0

The edit distance (ED) and longest common subsequence (LCS) are two fundamental problems which quantify how similar two strings are to one another. In this paper, we consider these problems in the asymmetric streaming model introduced by Andoni et al. (FOCS'10) and Saks and Seshadhri (SODA'13). In this model we have random access to one string and streaming access the other string. Our main contribution is a constant factor approximation algorithm for ED with the memory of Õ(n^δ) for any constant δ > 0. In addition to this, we present an upper bound of Õ_ϵ(√(n)) on the memory needed to approximate ED or LCS within a factor 1+ϵ. All our algorithms are deterministic and run in a single pass. For approximating ED within a constant factor, we discover yet another application of triangle inequality, this time in the context of streaming algorithms. Triangle inequality has been previously used to obtain subquadratic time approximation algorithms for ED. Our technique is novel and elegantly utilizes triangle inequality to save memory at the expense of an exponential increase in the runtime.

READ FULL TEXT
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...
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
11/20/2021

Approximation Algorithms for LCS and LIS with Truly Improved Running Times

Longest common subsequence (𝖫𝖢𝖲) is a classic and central problem in com...
research
02/19/2020

Space Efficient Deterministic Approximation of String Measures

We study approximation algorithms for the following three string measure...
research
11/08/2020

The Harmonic Edit Distance

This short note introduces a new distance between strings, where the cos...
research
04/10/2019

Constant factor approximations to edit distance on far input pairs in nearly linear time

For any T ≥ 1, there are constants R=R(T) ≥ 1 and ζ=ζ(T)>0 and a randomi...
research
10/24/2021

Approximating LCS and Alignment Distance over Multiple Sequences

We study the problem of aligning multiple sequences with the goal of fin...

Please sign up or login with your details

Forgot password? Click here to reset