An elastic-degenerate string is a sequence of $n$ sets of strings of total length $N$. It has been introduced to represent a multiple alignment of several closely-related sequences (eg pan-genome) compactly. In this representation, substrings of these sequences that match exactly are collapsed, while in positions where the sequences differ, all possible variants observed at that location are listed. The natural problem that arises is finding all matches of a deterministic pattern of length $m$ in an elastic-degenerate text. There exists a non-combinatorial $cO(nm^{1.381}+N)$-time algorithm to solve this problem on-line~cite{icalp2019}. In this paper, we study the same problem under the edit distance model and present an $cO(k^2mG+kN)$-time and $cO(m)$-space algorithm, where $G$ is the total number of strings in the elastic-degenerate text and $k$ is the maximum edit distance allowed. We also present a simple $cO(kmG+kN)$-time and $cO(m)$-space algorithm for solving the problem under Hamming distance.

Approximate Pattern Matching on Elastic-Degenerate Text

Nadia Pisanti;Giovanna Rosone
2020-01-01

Abstract

An elastic-degenerate string is a sequence of $n$ sets of strings of total length $N$. It has been introduced to represent a multiple alignment of several closely-related sequences (eg pan-genome) compactly. In this representation, substrings of these sequences that match exactly are collapsed, while in positions where the sequences differ, all possible variants observed at that location are listed. The natural problem that arises is finding all matches of a deterministic pattern of length $m$ in an elastic-degenerate text. There exists a non-combinatorial $cO(nm^{1.381}+N)$-time algorithm to solve this problem on-line~cite{icalp2019}. In this paper, we study the same problem under the edit distance model and present an $cO(k^2mG+kN)$-time and $cO(m)$-space algorithm, where $G$ is the total number of strings in the elastic-degenerate text and $k$ is the maximum edit distance allowed. We also present a simple $cO(kmG+kN)$-time and $cO(m)$-space algorithm for solving the problem under Hamming distance.
2020
Bernardini, Giulia; Pisanti, Nadia; Solon, Pissis; Rosone, Giovanna
File in questo prodotto:
File Dimensione Formato  
DGtext_TCS_JournalVersionOf_SPIRE2017.pdf

accesso aperto

Tipologia: Documento in Pre-print
Licenza: Creative commons
Dimensione 386.88 kB
Formato Adobe PDF
386.88 kB Adobe PDF Visualizza/Apri
BPPR_TCS2020.pdf

Open Access dal 07/04/2022

Descrizione: Articolo
Tipologia: Documento in Post-print
Licenza: Creative commons
Dimensione 388.01 kB
Formato Adobe PDF
388.01 kB Adobe PDF Visualizza/Apri

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/11568/1002120
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 10
  • ???jsp.display-item.citation.isi??? 6
social impact