Hostname: page-component-76d6cb85b7-rxvq6 Total loading time: 0 Render date: 2026-07-13T10:01:14.182Z Has data issue: false hasContentIssue false

The longest common substring problem

Published online by Cambridge University Press:  29 May 2015

MAXIME CROCHEMORE
Affiliation:
Department of Informatics, King's College London, London, UK Email: Maxime.Crochemore@kcl.ac.uk, Costas.Iliopoulos@kcl.ac.uk, Alessio.Langiu@kcl.ac.uk Université Paris-Est, Marne-La-Vallée, France
COSTAS S. ILIOPOULOS
Affiliation:
Department of Informatics, King's College London, London, UK Email: Maxime.Crochemore@kcl.ac.uk, Costas.Iliopoulos@kcl.ac.uk, Alessio.Langiu@kcl.ac.uk
ALESSIO LANGIU
Affiliation:
Department of Informatics, King's College London, London, UK Email: Maxime.Crochemore@kcl.ac.uk, Costas.Iliopoulos@kcl.ac.uk, Alessio.Langiu@kcl.ac.uk DMI, Università degli Studi di Palermo, Palermo, Italy
FILIPPO MIGNOSI
Affiliation:
DISIM, Università dell'Aquila, L'Aquila, Italy Email: Filippo.Mignosi@di.univaq.it

Abstract

Given a set $\mathcal{D}$ of q documents, the Longest Common Substring (LCS) problem asks, for any integer 2 ⩽ kq, the longest substring that appears in k documents. LCS is a well-studied problem having a wide range of applications in Bioinformatics: from microarrays to DNA sequences alignments and analysis. This problem has been solved by Hui (2000International Journal of Computer Science and Engineering15 73–76) by using a famous constant-time solution to the Lowest Common Ancestor (LCA) problem in trees coupled with the use of suffix trees.

In this article, we present a simple method for solving the LCS problem by using suffix trees (STs) and classical union-find data structures. In turn, we show how this simple algorithm can be adapted in order to work with other space efficient data structures such as the enhanced suffix arrays (ESA) and the compressed suffix tree.

Information

Type
Paper
Copyright
Copyright © Cambridge University Press 2015 

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Article purchase

Temporarily unavailable