An elastic-degenerate (ED) string is a sequence of n sets of strings of total length N which was recently proposed to model a set of similar sequences. The ED string matching (EDSM) problem is to find all occurrences of a pattern of length m in an ED text. The EDSM problem has recently received some attention in the combinatorial pattern matching community, and an O (nm15 √log m+N)-time algorithm is known [Aoyama et al., CPM 2018]. The standard assumption in the prior work on this question is that N is substantially larger than both n and m, and thus we would like to have a linear dependency on the former. Under this assumption, the natural open problem is whether we can decrease the 1.5 exponent in the time complexity, similarly as in the related (but, to the best of our knowledge, not equivalent) word break problem [Backurs and Indyk, FOCS 2016]. Our starting point is a conditional lower bound for the EDSM problem. We use the popular combinatorial Boolean matrix multiplication (BMM) conjecture stating that there is no truly subcubic combinatorial algorithm for BMM [Abboud and Williams, FOCS 2014]. By designing an appropriate reduction, we show that a combinatorial algorithm solving the EDSM problem in \scrO (nm1.5 - \epsilon + N) time, for any \epsilon > 0, refutes this conjecture. Our reduction should be understood as an indication that decreasing the exponent requires fast matrix multiplication. String periodicity and fast Fourier transform are two standard tools in string algorithms. Our main technical contribution is that we successfully combine these tools with fast matrix multiplication to design a noncombinatorial \scrO \~(nm\omega -1 + N)-time algorithm for EDSM, where \omega denotes the matrix multiplication exponent and the \scrO \~(\cdot ) notation suppresses polylog factors. To the best of our knowledge, we are the first to combine these tools. In particular, using the fact that \omega < 2.373 [Alman and Williams, SODA 2021; Le Gall, ISSAC 2014; Williams, STOC 2012], we obtain an \scrO (nm1.373 + N)-time algorithm for EDSM. An important building block in our solution that might find applications in other problems is a method of selecting a small set of length-\ell substrings of the pattern, called anchors, so that any occurrence of a string from an ED text set contains at least one but not too many (on average) such anchors inside.

Elastic-degenerate string matching via fast matrix multiplication / G. Bernardini, P. Gawrychowski, N. Pisanti, S.P. Pissis, G. Rosone. - In: SIAM JOURNAL ON COMPUTING. - ISSN 0097-5397. - 51:3(2022 Jun), pp. 549-576. [10.1137/20m1368033]

Elastic-degenerate string matching via fast matrix multiplication

G. Bernardini
Primo
;
2022

Abstract

An elastic-degenerate (ED) string is a sequence of n sets of strings of total length N which was recently proposed to model a set of similar sequences. The ED string matching (EDSM) problem is to find all occurrences of a pattern of length m in an ED text. The EDSM problem has recently received some attention in the combinatorial pattern matching community, and an O (nm15 √log m+N)-time algorithm is known [Aoyama et al., CPM 2018]. The standard assumption in the prior work on this question is that N is substantially larger than both n and m, and thus we would like to have a linear dependency on the former. Under this assumption, the natural open problem is whether we can decrease the 1.5 exponent in the time complexity, similarly as in the related (but, to the best of our knowledge, not equivalent) word break problem [Backurs and Indyk, FOCS 2016]. Our starting point is a conditional lower bound for the EDSM problem. We use the popular combinatorial Boolean matrix multiplication (BMM) conjecture stating that there is no truly subcubic combinatorial algorithm for BMM [Abboud and Williams, FOCS 2014]. By designing an appropriate reduction, we show that a combinatorial algorithm solving the EDSM problem in \scrO (nm1.5 - \epsilon + N) time, for any \epsilon > 0, refutes this conjecture. Our reduction should be understood as an indication that decreasing the exponent requires fast matrix multiplication. String periodicity and fast Fourier transform are two standard tools in string algorithms. Our main technical contribution is that we successfully combine these tools with fast matrix multiplication to design a noncombinatorial \scrO \~(nm\omega -1 + N)-time algorithm for EDSM, where \omega denotes the matrix multiplication exponent and the \scrO \~(\cdot ) notation suppresses polylog factors. To the best of our knowledge, we are the first to combine these tools. In particular, using the fact that \omega < 2.373 [Alman and Williams, SODA 2021; Le Gall, ISSAC 2014; Williams, STOC 2012], we obtain an \scrO (nm1.373 + N)-time algorithm for EDSM. An important building block in our solution that might find applications in other problems is a method of selecting a small set of length-\ell substrings of the pattern, called anchors, so that any occurrence of a string from an ED text set contains at least one but not too many (on average) such anchors inside.
string algorithms; pattern matching; elastic-degenerate string; matrix multiplication; fast Fourier transform
Settore INFO-01/A - Informatica
   Pan-genome Graph Algorithms and Data Integration
   PANGAIA
   European Commission
   Horizon 2020 Framework Programme
   872539

   ALgorithms for PAngenome Computational Analysis
   ALPACA
   European Commission
   Horizon 2020 Framework Programme
   956229

   Optimization for and with Machine Learning (OPTIMAL)
   Netherlands Organisation for Scientific Research (NWO)
   Open Competitie ENW XL (voorheen OC ENW-GROOT) Ronde 2019
   OCENW.GROOT.2019.015
giu-2022
Article (author)
File in questo prodotto:
File Dimensione Formato  
20m1368033.pdf

accesso riservato

Tipologia: Publisher's version/PDF
Dimensione 668.94 kB
Formato Adobe PDF
668.94 kB Adobe PDF   Visualizza/Apri   Richiedi una copia
Pubblicazioni consigliate

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/2434/1131837
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 18
  • ???jsp.display-item.citation.isi??? 13
  • OpenAlex ND
social impact