Quadratic-Time Hardness of LCS and other Sequence Similarity Measures
Abstract
Two important similarity measures between sequences are the longest common subsequence (LCS) and the dynamic time warping distance (DTWD). The computations of these measures for two given sequences are central tasks in a variety of applications. Simple dynamic programming algorithms solve these tasks in time, and despite an extensive amount of research, no algorithms with significantly better worst case upper bounds are known. In this paper, we show that an time algorithm, for some , for computing the LCS or the DTWD of two sequences of length over a constant size alphabet, refutes the popular Strong Exponential Time Hypothesis (SETH). Moreover, we show that computing the LCS of strings over an alphabet of size cannot be done in time, for any , under SETH. Finally, we also address the time complexity of approximating the DTWD of two strings in truly subquadratic time.
Keywords
Cite
@article{arxiv.1501.07053,
title = {Quadratic-Time Hardness of LCS and other Sequence Similarity Measures},
author = {Amir Abboud and Arturs Backurs and Virginia Vassilevska Williams},
journal= {arXiv preprint arXiv:1501.07053},
year = {2015}
}