How Compression and Approximation Affect Efficiency in String Distance Measures
How Compression and Approximation Affect Efficiency in String Distance Measures
复制标题
压缩和近似如何影响弦距离测量的效率
DOI:
10.1137/1.9781611977073.112
复制
发表时间:
2022
期刊:
影响因子:
--
通讯作者:
and Saha, Barna
中科院分区:
文献类型:
--
作者:
Ganesh, Arun;Kociumaka, Tomasz;Loncoln, Andrea;and Saha, Barna
Real-world data often comes in compressed form. Analyzing compressed data directly (without first decompressing it) can save space and time by orders of magnitude. In this work, we focus on fundamental sequence comparison problems and try to quantify the gain in time complexity when the underlying data is highly compressible. We consider grammar compression, which unifies many practically relevant compression schemes such as the Lempel–Ziv family, dictionary methods, and others. For two strings of total lengthNand total compressed sizen, it is known that the edit distance and a longest common subsequence (LCS) can be computed exactly in timeÕ(nN), as opposed toO(N2) for the uncompressed setting. Many real-world applications need to align multiple sequences simultaneously, and the fastest known exact algorithms for median edit distance and LCS ofkstrings run inO(Nk) time, whereas the one for center edit distance has a time complexity ofO(N2k). This naturally raises the question if compression can help to reduce the running time significantly fork≥ 3, perhaps toO(Nk/2nk/2) or, more optimistically, toO(Nnk–1).1Unfortunately, we show new lower bounds that rule out any improvement beyondΩ(Nk–1n) time for any of these problems assuming the Strong Exponential Time Hypothesis (SETH), where againNandnrepresent the total length and the total compressed size, respectively. This answers an open question of Abboud, Backurs, Bringmann, and Künnemann (FOCS'17).In presence of such negative results, we ask if allowing approximation can help, and we show that approximation and compression together can be surprisingly effective for both multiple and two strings.We develop anÕ(Nk/2nk/2)-time FPTAS for the median edit distance ofksequences, leading to a saving of nearly half the dimensions for highly-compressible sequences. In comparison, noO(Nk–Ω(1))-time PTAS is known for the median edit distance problem in the uncompressed setting. We obtain an improvement from for the center edit distance problem. For two strings, we get an -time FPTAS for both edit distance and LCS; note that this running time iso(N) whenevern≪N1/4. In contrast, for uncompressed strings, there is not even a subquadratic algorithm for LCS that has less than polynomial gap in the approximation factor. Building on the insight from our approximation algorithms, we also obtain several new and improved results for many fundamental distance measures including the edit, Hamming, and shift distances.