Lune

SODA2022顶会

How Compression and Approximation Affect Efficiency in String Distance Measures

Arun Ganesh, Tomasz Kociumaka, Andrea Lincoln, Barna Saha

2022年份
7被引次数
9顶会引用

摘要

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 length N and total compressed size n, it is known that the edit distance and a longest common subsequence (LCS) can be computed exactly in time O (nN ), as opposed to O(N 2 ) 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 of k strings run in O(N k ) time, whereas the one for center edit distance has a time complexity of O(N 2k ). This naturally raises the question if compression can help to reduce the running time significantly for k ≥ 3, perhaps to O(N k/2 n k/2 ) or, more optimistically, to O(N n k-1 ). 1 Unfortunately, we show new lower bounds that rule out any improvement beyond Ω(N k-1 n) time for any of these problems assuming the Strong Exponential Time Hypothesis (SETH), where again N and n represent 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 O (N k/2 n k/2 )-time FPTAS for the median edit distance of k sequences, leading to a saving of nearly half the dimensions for highly-compressible sequences. In comparison, no O(N k-Ω(1) )-time PTAS is known for the median edit distance problem in the uncompressed setting. We obtain an improvement from O (N 2k ) to O (N k/2+o(k) n k/2 ) for the center edit distance problem. For two strings, we get an O (N 2/3 n 4/3 )-time FPTAS for both edit distance and LCS; note that this running time is o(N ) whenever n N 1/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.

问问这篇 Paper

智能体会读完全文。

Lune 把这篇 Paper 索引到了每一个公式,引用它的顶会 Paper 也一样。你提问,回答直接引用原文。

可以从这些问题问起

智能体调用

Luneget_paper_fulltext

在 Lune 里问

免费开始,无需绑卡

引用它的顶会 Paper9

问问它们各自怎么用它

它引用的顶会 Paper7

相关 Paper

黄昏的海面,两侧是细线勾勒的悬崖