Abstract
We introduce a new family of string processing problems. Given two or more strings, we are asked to compute a factor common to all strings that preserves a specific property and has maximal length. We consider three fundamental string properties: square-free factors, periodic factors, and palindromic factors under three different settings, one per property. In the first setting, we are given a string x and we are asked to construct a data structure over x answering the following type of online queries: given a string y, find a longest square-free factor common to x and y. In the second setting, we are given k strings and an integer 1<k′≤k and we are asked to find a longest periodic factor common to at least k′ strings. In the third one, we are given two strings and we are asked to find a longest palindromic factor common to the two strings. We present linear-time solutions for all settings. This is a full and extended version of a paper from SPIRE 2018.
Original language | English |
---|---|
Pages (from-to) | 244-251 |
Number of pages | 8 |
Journal | Theoretical Computer Science |
Volume | 812 |
DOIs | |
Publication status | Published - 6 Apr 2020 |
Externally published | Yes |
Funding
Solon P. Pissis and Giovanna Rosone are partially supported by the Royal Society project IE 161274 (“Processing uncertain sequences: combinatorics and applications”. Giovanna Rosone and Nadia Pisanti are partially supported by the project MIUR -SIR grant n. RBSI146R5L , CMACBioSeq: “Combinatorial methods for analysis and compression of biological sequences”. Roberto Grossi is partially supported by MIUR Grant n. 20174LF3T8 AHeAD : “efficient Algorithms for HArnessing networked Data”.
Funders | Funder number |
---|---|
Royal Society | IE 161274 |
Ministero dell’Istruzione, dell’Università e della Ricerca | 20174LF3T8 AHeAD, RBSI146R5L |
Keywords
- Palindromic factors
- Periodic factors
- Square-free factors