Elastic-degenerate string comparison
An elastic-degenerate (ED) string T is a sequence of n sets T[1],…,T[n] containing m strings in total whose cumulative length is N. We call n, m, and N the length, the cardinality and the size of T, respectively. The language of T is defined as L(T)={S<sub>1</sub>⋯S<sub>n</sub>:S<sub>i</sub>∈T[i] for all i∈[1,n]}. Given two ED strings, how fast can we check whether the two languages they represent have a nonempty intersection? We call this problem the ED STRING INTERSECTION (EDSI) problem. For two ED strings T<sub>1</sub> and T<sub>2</sub> of lengths n<sub>1</sub> and n<sub>2</sub>, cardinalities m<sub>1</sub> and m<sub>2</sub>, and sizes N<sub>1</sub> and N<sub>2</sub>, respectively, we show the following: • There is no O((N<sub>1</sub>N<sub>2</sub>)<sup>1−ϵ</sup>)-time algorithm, for any ϵ>0, for EDSI even if T<sub>1</sub> and T<sub>2</sub> are over a binary alphabet, unless the Strong Exponential-Time Hypothesis is false. • There is no combinatorial O((N<sub>1</sub>+N<sub>2</sub>)<sup>1.2−ϵ</sup>f(n<sub>1</sub>,n<sub>2</sub>))-time algorithm, for any ϵ>0 and any function f, for EDSI even if T<sub>1</sub> and T<sub>2</sub> are over a binary alphabet, unless the Boolean Matrix Multiplication conjecture is false. • An O(N<sub>1</sub>logN<sub>1</sub>logn<sub>1</sub>+N<sub>2</sub>logN<sub>2</sub>logn<sub>2</sub>)-time algorithm for outputting a compact representation of the intersection language of two unary ED strings. When T<sub>1</sub> and T<sub>2</sub> are given in a compact representation, we show that the problem is NP-complete. • An O(N<sub>1</sub>m<sub>2</sub>+N<sub>2</sub>m<sub>1</sub>)-time algorithm for EDSI. • An O˜(N<sub>1</sub><sup>ω−1</sup>n<sub>2</sub>+N<sub>2</sub><sup>ω−1</sup>n<sub>1</sub>)-time algorithm for EDSI, where ω is the matrix multiplication exponent; the O˜ notation suppresses factors that are polylogarithmic in the input size.
Authors
- Michelle Sweering (ORCID: https://orcid.org/0000-0003-1200-6015)
- Solon P. Pissis (ORCID: https://orcid.org/0000-0002-1445-1932)
- Estéban Gabory (ORCID: https://orcid.org/0000-0002-9897-1512)
- Moses Njagi Mwaniki (ORCID: https://orcid.org/0000-0002-4858-2375)
- Nadia Pisanti (ORCID: https://orcid.org/0000-0003-3915-7665)
- Jakub Radoszewski (ORCID: https://orcid.org/0000-0002-0067-6401)
- Wiktor Zuba (ORCID: https://orcid.org/0000-0002-1988-3507)
Publication Details
- Journal
- Information and Computation
- Published
- 2025-03-14
- DOI
- https://doi.org/10.1016/j.ic.2025.105296
- Citations
- 1
- Primary Topic
- Algorithms and Data Compression
- Type
- article
- Field-Weighted Citation Impact
- 2.48