A Data-Structure for Approximate Longest Common Subsequence of A Set of Strings

preprint2021arXivOpen access

Abstract

Given a set of kk strings II, their longest common subsequence (LCS) is the string with the maximum length that is a subset of all the strings in II. A data-structure for this problem preprocesses II into a data-structure such that the LCS of a set of query strings QQ with the strings of II can be computed faster. Since the problem is NP-hard for arbitrary kk, we allow an error that allows some characters to be replaced by other characters. We define the approximation version of the problem with an extra input mm, which is the length of the regular expression (regex) that describes the input, and the approximation factor is the logarithm of the number of possibilities in the regex returned by the algorithm, divided by the logarithm regex with the minimum number of possibilities. Then, we use a tree data-structure to achieve sublinear-time LCS queries. We also explain how the idea can be extended to the longest increasing subsequence (LIS) problem.

Explore this paper’s authors, topics and related work.

Building this map preview

BZPEER is loading the nearby papers, people, topics and institutions for this page.

Reviews 0

Write a reviewWrite

No reviews yet.

Discussion 0

Add a commentWrite

No comments yet.