A string is closed if it has length 1 or has a nonempty border without internal occurrences. In this paper, we introduce the notion of a maximal closed substring (MCS), which is an occurrence of a closed substring that cannot be extended to the left nor to the right by one character into a longer closed substring. MCSs with exponent at least 2 are commonly called runs; those with exponent smaller than 2, instead, are particular cases of maximal gapped repeats. We provide an algorithm that, given a string of length n, locates all MCSs the string contains in O(nlogn) time.

Badkobeh, G., De Luca, A., Fici, G., Puglisi, S.J. (2026). Finding maximal closed substrings. THEORETICAL COMPUTER SCIENCE, 1060 [10.1016/j.tcs.2025.115628].

Finding maximal closed substrings

De Luca A.;Fici G.
;
2026-01-18

Abstract

A string is closed if it has length 1 or has a nonempty border without internal occurrences. In this paper, we introduce the notion of a maximal closed substring (MCS), which is an occurrence of a closed substring that cannot be extended to the left nor to the right by one character into a longer closed substring. MCSs with exponent at least 2 are commonly called runs; those with exponent smaller than 2, instead, are particular cases of maximal gapped repeats. We provide an algorithm that, given a string of length n, locates all MCSs the string contains in O(nlogn) time.
18-gen-2026
Settore INFO-01/A - Informatica
Badkobeh, G., De Luca, A., Fici, G., Puglisi, S.J. (2026). Finding maximal closed substrings. THEORETICAL COMPUTER SCIENCE, 1060 [10.1016/j.tcs.2025.115628].
File in questo prodotto:
File Dimensione Formato  
1-s2.0-S0304397525005663-main (1).pdf

Solo gestori archvio

Tipologia: Versione Editoriale
Dimensione 1.57 MB
Formato Adobe PDF
1.57 MB Adobe PDF   Visualizza/Apri   Richiedi una copia

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/10447/716163
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 1
  • ???jsp.display-item.citation.isi??? 1
social impact