vix.ing · top · new · best · stats · spec

Elastic-Degenerate String Comparison

2024/11/12 by Estéban Gabory, Gabory, Esteban, Moses Njagi Mwaniki +11
Engineering · #Data Structures and Algorithms (cs.DS) #FOS: Computer and information sciences #Vibration and Dynamic Analysis

paper · pdf · doi:10.48550/arxiv.2411.07782

openalex publication_date 2024/11/12 · openalex created_date 2025/10/10 · openalex updated_date 2026/07/30

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)=\S1 ⋯ Sn : Si ∈ T[i] for all i∈[1,n]\. ED strings have been introduced to represent a set of closely-related DNA sequences, also known as a pangenome. The basic question we investigate here is: Given two ED strings, how fast can we check whether the two languages they represent have a nonempty intersection? We call the underlying problem the ED String Intersection (EDSI) problem.For two ED strings T1 and T2 of lengths n1 and n2, cardinalities m1 and m2, and sizes N1 and N2, respectively, we show the following: - There is no O((N1N2)1-ε)-time algorithm, for any constant ε>0, for EDSI even when T1 and T2 are over a binary alphabet, unless the Strong Exponential-Time Hypothesis is false. - There is no combinatorial O((N1+N2)1.2-εf(n1,n2))-time algorithm, for any constant ε>0 and any function f, for EDSI even when T1 and T2 are over a binary alphabet, unless the Boolean Matrix Multiplication conjecture is false. - An O(N1log N1log n1+N2log N2log n2)-time algorithm for outputting a compact (RLE) representation of the intersection language of two unary ED strings. In the case when T1 and T2 are given in a compact representation, we show that the problem is NP-complete. - An O(N1m2+N2m1)-time algorithm for EDSI. - An O(N1ω-1n2+N2ω-1n1)-time algorithm for EDSI, where ω is the exponent of matrix multiplication; the O notation suppresses factors that are polylogarithmic in the input size.

Related