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 ϵ&gt;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 ϵ&gt;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>log⁡N<sub>1</sub>log⁡n<sub>1</sub>+N<sub>2</sub>log⁡N<sub>2</sub>log⁡n<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

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Elastic-degenerate string comparison

Michelle Sweering, Solon P. Pissis, Estéban Gabory, Moses Njagi Mwaniki et al.
1 citations
Information and Computation
Algorithms and Data Compression
2.48
article

Elastic-degenerate string comparison

Michelle Sweering, Solon P. Pissis, Estéban Gabory, Moses Njagi Mwaniki, Nadia Pisanti, Jakub Radoszewski, Wiktor Zuba
article en
1 citations

Abstract

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 ϵ&gt;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 ϵ&gt;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>log⁡N<sub>1</sub>log⁡n<sub>1</sub>+N<sub>2</sub>log⁡N<sub>2</sub>log⁡n<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.

Information and ComputationVol. 304
Openalex Percentile: Top 11%
Algorithms and Data Compression
2.48
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.