Hostname: page-component-74656f9884-2dmjx Total loading time: 0 Render date: 2026-11-07T03:30:59.071Z 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
Rights & Permissions [Opens in a new window]

Abstract

Core share and HTML view are not available for this content. However, as you have access to this content, a full PDF is available via the 'Save PDF' action button.

Given a set $\mathcal{D}$ of q documents, the Longest Common Substring (LCS) problem asks, for any integer 2 ⩽ k ⩽ q, 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