English

$LCSk$++: Practical similarity metric for long strings

Data Structures and Algorithms 2019-08-27 v1

Abstract

In this paper we present LCSkLCSk++: a new metric for measuring the similarity of long strings, and provide an algorithm for its efficient computation. With ever increasing size of strings occuring in practice, e.g. large genomes of plants and animals, classic algorithms such as Longest Common Subsequence (LCS) fail due to demanding computational complexity. Recently, Benson et al. defined a similarity metric named LCSkLCSk. By relaxing the requirement that the kk-length substrings should not overlap, we extend their definition into a new metric. An efficient algorithm is presented which computes LCSkLCSk++ with complexity of O((X+Y)log(X+Y))O((|X|+|Y|)\log(|X|+|Y|)) for strings XX and YY under a realistic random model. The algorithm has been designed with implementation simplicity in mind. Additionally, we describe how it can be adjusted to compute LCSkLCSk as well, which gives an improvement of the O(X˙Y)O(|X|\dot|Y|) algorithm presented in the original LCSkLCSk paper.

Keywords

Cite

@article{arxiv.1407.2407,
  title  = {$LCSk$++: Practical similarity metric for long strings},
  author = {Filip Pavetić and Goran Žužić and Mile Šikić},
  journal= {arXiv preprint arXiv:1407.2407},
  year   = {2019}
}
R2 v1 2026-06-22T04:59:18.766Z