arXiv:2610.17910cs.FLOct 2026

Manuscript Offprint

arXiv:2610.17910

Jumbled Simon's Equivalence and Embeddings

Pamela Fleischmann, Annika Huch, Sungmin Kim, Tore Koß, Emil Wiards

Abstract

Jumbled scattered factors are a generalisation of scattered factors (or subsequences) where a jumbled scattered factor is obtained from another word by deleting and rearranging letters. For limiting the number of rearrangements, we distinguish ℓ\ell-jumbled scattered factors where ℓ\ell limits the number of letters that may occur rearranged. For instance, car, start, rat, cat are jumbled scattered factors of abstract even though car, start and cat are no scattered factors and each need one jumble. An example for a jumbled scattered factor with 2 jumbles is tatar. In this work, we investigate two problems on jumbled scattered factors from an algorithmic perspective. First, we give algorithms for testing jumbled Simon's equivalence where two words are equivalent if they share the same ℓ\ell-jumbled scattered factors up to length k. Second, we investigate how to count the possible occurrences of a jumbled scattered factor – the jumbled binomial coefficient. After defining the jumbled binomial coefficient, we study jumbled embeddings and factorisations of such as well.

2012 ACM Subject Classification Mathematics of computing → Combinatorics on words; Mathematics of computing → Permutations and combinations; Theory of computation → Formal languages and automata theory

Keywords and phrases scattered factor, jumbled scattered factor, longest common subsequence, permutations

Funding Tore Koß: this research was supported by the University of Liege under Special Funds for Research, IPD-STEMA Programme

1 Introduction

A reoccurring topic in computer science, data science and bioinformatics is the analysis of data. One theoretical model for data are scattered factors (also called subsequences, subwords) which are obtained by deleting some letters in a given string while preserving the order of the remaining letters. Formally, a scattered factor of a word w is another word u of length m such that there exist (possibly empty) words v1,…,vm+1v_1, \ldots, v_{m+1} satisfying w=v1u[1]v2⋯vmu[m]vm+1w = v_1 u[1] v_2 \cdots v_m u[m] v_{m+1}. For example, cat, care, and sad are scattered factors of scattered, while dare and dart are not. Scattered factors are of ongoing research interest, dating back to the early investigations by Higman [19] and Haines [17] in the 1950s and 1960s. In 1975, Imre Simon continued the research on scattered factors (piecewise subwords) in the context of piecewise-testable languages [38, 39]. Since then, scattered factors attracted widespread attention in many fields such as combinatorics on words [28, 33], algorithms and stringology [3, 4, 7, 12, 32, 40], logics [5, 18, 29, 30], and language and automata theory [1, 21, 22, 38, 39, 42]. Further applications of scattered factors can be found in bioinformatics [9, 41], formal software verification [18, 42] and database theory [2, 14, 26, 27, 35]. The fundamental work of Simon [38] also introduced a congruence relation that is nowadays called Simon's congruence. Two words are Simon k-congruent for a natural number k, if they share the same scattered factors up to length k. Recent developments consider problems of testing and deciding Simon's congruence [10, 15, 25].

Ongoing research on scattered factors motivated the introduction of jumbled scattered factors, a generalisation of scattered factors which considers not only scattered factors but also rearrangements (see e.g. [34, 23] for abelian equivalence of words) of them [11]. A word uu of length mm is a jumbled scattered factor of ww if w=v1u[i1]⋯vmu[im]vm+1w = v_1 u[i_1] \cdots v_m u[i_m] v_{m+1} for some permutation i1i2⋯imi_1 i_2 \cdots i_m and (possibly empty) words v1,…,vm+1v_1, \ldots, v_{m+1}. For example, apart from all scattered factors, dare and dart are jumbled scattered factors of scattered but retreat is not since r\mathbf{r} occurs only once in scattered. Further, they also considered restrictions on the number of jumbles, i.e. uu is ℓ\ell-jumbled in ww if at most ℓ\ell characters are out of order or, in other words, there is a common scattered factor of uu and ww of length ∣u∣−ℓ|u| - \ell. In that sense, the word dare is 1-jumbled and dart is 2-jumbled in scattered. In general, there is an inverse relation between the required number of jumbles and the longest common scattered factors. Simon's congruence and universality were also generalised to jumbled scattered factors in the hope that insights on the jumbled version translate to the non-jumbled case; though, notably, the jumbled version of Simons congruence is only an equivalence and not a congruence relation [11].

While thus-far-mentioned research mainly focused on the existence of (jumbled) scattered factors, there has also been research on the number of occurrences of a scattered factor in a word. Here, separate occurrences are usually modelled using word embeddings, i.e. strictly increasing maps from the set of positions of a scattered factor u into the set of positions of w such that their letters match. Typically, (wu)\binom{w}{u} denotes the number of distinct embeddings of u in w [31]. For example, we get (bananaana)=4\binom{\text{banana}}{\text{ana}} = 4. However, there is no such research on jumbled scattered factors as of yet.

Our Contribution. In this work, we develop the work on jumbled scattered factors in two directions: on the one hand we investigate the problem of testing jumbled k-Simon-equivalence by presenting an algorithm for fixed k and ℓ\ell using finite automata and another one harnessing the connection between jumbled scattered factors and longest common scattered factors. On the other hand, we investigate the problem of counting the amount of occurrences of a given jumbled scattered factor in a given word.

References (27)