Skip to main content
Springer Nature - PMC COVID-19 Collection logoLink to Springer Nature - PMC COVID-19 Collection
. 2020 Jan 7;12038:412–424. doi: 10.1007/978-3-030-40608-0_29

On Collapsing Prefix Normal Words

Pamela Fleischmann 12,, Mitja Kulczynski 12, Dirk Nowotka 12, Danny Bøgsted Poulsen 13
Editors: Alberto Leporati8, Carlos Martín-Vide9, Dana Shapira10, Claudio Zandron11
PMCID: PMC7206656

Abstract

Prefix normal words are binary words in which each prefix has at least the same number of Inline graphics as any factor of the same length. Firstly introduced in 2011, the problem of determining the index (amount of equivalence classes for a given word length) of the prefix normal equivalence relation is still open. In this paper, we investigate two aspects of the problem, namely prefix normal palindromes and so-called collapsing words (extending the notion of critical words). We prove characterizations for both the palindromes and the collapsing words and show their connection. Based on this, we show that still open problems regarding prefix normal words can be split into certain subproblems.

Introduction

Two words are called abelian equivalent if the amount of each letter is identical in both words, e.g. rotor and torro are abelian equivalent albeit banana and ananas are not. Abelian equivalence has been studied with various generalisations and specifications such as abelian-complexity, k-abelian equivalence, avoidability of (k-)abelian powers and much more (cf. e.g., [6, 10, 11, 13, 17, 2224]). The number of occurrences of each letter is captured in the Parikh vector (also known as Parikh image or Parikh mapping) [21]: given a lexicographical order on the alphabet, the Inline graphic component of this vector is the amount of the Inline graphic letter of the alphabet in a given word. Parikh vectors have been studied in [12, 16, 19] and are generalised to Parikh matrices for saving more information about the word than just the amount of letters (cf. eg., [20, 25]).

A recent generalisation of abelian equivalence, for words over the binary alphabet Inline graphic, is prefix normal equivalence (pn-equivalence) [14]. Two binary words are pn-equivalent if their maximal numbers of Inline graphics in any factor of length n are equal for all Inline graphic. Burcsi et al. [5] showed that this relation is indeed an equivalence relation and moreover that each class contains exactly one uniquely determined representative - called a prefix normal word. A word w is said to be prefix normal if the prefix of w of any length has at least the number of Inline graphics as any of w’s factors of the same length. For instance, the word Inline graphic is prefix normal but Inline graphic is not, witnessed by the fact that Inline graphic is a factor but not a prefix. Both words are pn-equivalent. In addition to being representatives of the pne-classes, prefix normal words are also of interest since they are connected to Lyndon words, in the sense that every prefix normal word is a pre-necklace [14]. Furthermore, as shown in [14], the indexed jumbled pattern matching problem (see e.g. [2, 4, 18]) is connected to prefix normal forms: if the prefix normal forms are given, the indexed jumbled pattern matching problem can be solved in linear time Inline graphic of the word length n. The best known algorithm for this problem has a run-time of Inline graphic (see [7]). Consequently there is also an interest in prefix normal forms from an algorithmic point of view. An algorithm for the computation of all prefix normal words of length n in run-time Inline graphic per word is given in [8]. Balister and Gerke [1] showed that the number of prefix normal words of length n is Inline graphic and the class of a given prefix normal word contains at most Inline graphic elements. A closed formula for the number of prefix normal words is still unknown. In “OEIS” [15] the number of prefix normal words of length n (A194850), a list of binary prefix normal words (A238109), and the maximum size of a class of binary words of length n having the same prefix normal form (A238110), can be found. An extension to infinite words is presented in [9].

Our Contribution. In this work we investigate two conspicuities mentioned in [3, 14]: palindromes and extension-critical words. Generalising the result of [3] we prove that prefix normal palindromes (pnPal) play a special role since they are not pn-equivalent to any other word. Since not all palindromes are prefix normal, as witnessed by Inline graphic, determining the number of pnPals is an (unsolved) sub-problem. We show that solving this sub-problem brings us closer to determining the index, i.e. number of equivalence classes w.r.t. a given word length, of the pn-equivalence relation. Moreover we give a characterisation based on the maximum-ones function for pnPals. The notion of extension-critical words is based on an iterative approach: compute the prefix normal words of length Inline graphic based on the prefix normal words of length n. A prefix normal word w is called extension-critical if Inline graphic is not prefix normal. For instance, the word Inline graphic is prefix normal but Inline graphic is not and thus Inline graphic is called extension-critical. This means that all non-extension-critical words contribute to the class of prefix normal words of the next word-length. We investigate the set of extension-critical words by introducing an equivalence relation collapse, grouping all extensional-critical words that are pn-equivalent w.r.t. length Inline graphic. Finally we prove that (prefix normal) palindromes and the collapsing relation (extensional-critical words) are related. In contrast to [14] we work with suffix-normal words (least representatives) instead of prefix-normal words. It follows from Lemma 1 that both notions lead to the same results.

Structure of the Paper. In Sect. 2, the basic definitions and notions are presented. In Sect. 3, we present the results on pnPals. Finally, in Sect. 4, the iterative approach based on collapsing words is shown. This includes a lower bound and an upper bound for the number of prefix normal words, based on pnPals and the collapsing relation. Due to space restrictions all proofs are in the appendix.

Preliminaries

Let Inline graphic denote the set of natural numbers starting with 1, and let Inline graphic. Define Inline graphic, for Inline graphic, and set Inline graphic.

An alphabet is a finite set Inline graphic, the set of all finite words over Inline graphic is denoted by Inline graphic, and the empty word by Inline graphic. Let Inline graphic be the free semigroup for the free monoid Inline graphic. Let w[i] denote the Inline graphic letter of Inline graphic that is Inline graphic or Inline graphic. The length of a word Inline graphic is denoted by |w| and let Inline graphic. Set Inline graphic for Inline graphic. Set Inline graphic for all Inline graphic. The number of occurrences of a letter Inline graphic in Inline graphic is denoted by Inline graphic. For a given word Inline graphic the reversal of w is defined by Inline graphic. A word Inline graphic is a factor of Inline graphic if Inline graphic holds for some words Inline graphic. If Inline graphic then u is called a prefix of w and a suffix if Inline graphic. Let Inline graphic denote the sets of all factors, prefixes, and suffixes respectively. Define Inline graphic and Inline graphic are defined accordingly. Notice that Inline graphic for all Inline graphic. The powers of Inline graphic are recursively defined by Inline graphic, Inline graphic for Inline graphic.

Following [14], we only consider binary alphabets, namely Inline graphic with the fixed lexicographic order induced by Inline graphic on Inline graphic. In analogy to binary numbers we call a word Inline graphic odd if Inline graphic and even otherwise.

For a function Inline graphic for Inline graphic and an arbitrary alphabet Inline graphic the concatenation of the images defines a finite word Inline graphic. Since Inline graphic is bijective, we will identify Inline graphic with f and use in both cases f (as long as it is clear from the context). This definition allows us to access f’s reversed function Inline graphic easily by Inline graphic.

Definition 1

The maximum-ones functions is defined for a word Inline graphic by Inline graphic giving for each Inline graphic the maximal number of Inline graphics occuring in a factor of length k. Likewise the prefix-ones and suffix-ones functions are defined by Inline graphic and Inline graphic.

Definition 2

Two words Inline graphic are called prefix-normal equivalent (pn-equivalent, Inline graphic) if Inline graphic holds and v’s equivalence class is denoted by Inline graphic. A word Inline graphic is called prefix (suffix) normal iff Inline graphic (Inline graphic resp.) holds. Let Inline graphic denote the maximal-one sum of a Inline graphic.

Remark 1

Notice that Inline graphic for all Inline graphic. By Inline graphic and Inline graphic follows immediately that a word Inline graphic is prefix normal iff its reversal is suffix normal.

Fici and Lipták [14] showed that for each word Inline graphic there exists exactly one Inline graphic that is prefix normal - the prefix normal form of w. We introduce the concept of least representative, which is the lexicographically smallest element of a class and thus also unique. As mentioned in [5] palindromes play a special role. Immediately by Inline graphic for Inline graphic, we have Inline graphic, i.e. palindromes are the only words that can be prefix and suffix normal. Recall that not all palindromes are prefix normal witnessed by Inline graphic.

Definition 3

A palindrome is called prefix normal palindrome (pnPal) if it is prefix normal. Let Inline graphic denote the set of all prefix normal palindromes of length Inline graphic and set Inline graphic. Let Inline graphic be the set of all palindromes of length Inline graphic.

Table 1.

Prefix normal palindromes (pnPals).

Word length Prefix normal palindromes # prefix normal words
1 Inline graphic 2
2 Inline graphic 3
3 Inline graphic 5
4 Inline graphic 8
5 Inline graphic 14
6 Inline graphic 23
7 Inline graphic 41
8 Inline graphic 70

Properties of the Least-Representatives

Before we present specific properties of the least representatives (LR) for a given word length, we mention some useful properties of the maximum-ones, prefix-ones, and suffix-ones functions (for the basic properties we refer to [5, 14] and the references therein). Since we are investigating only words of a specific length, we fix Inline graphic. Beyond the relation Inline graphic the mappings Inline graphic and Inline graphic are determinable from each other. Counting the Inline graphics in a suffix of length i and adding the Inline graphics in the corresponding prefix of length Inline graphic of a word w, gives the overall amount of Inline graphics of w, namely

graphic file with name M108.gif

For suffix (resp. prefix) normal words this leads to Inline graphic resp. Inline graphic witnessing the fact Inline graphic for palindromes (since both equation hold). Before we show that indeed pnPals form a singleton class w.r.t. Inline graphic, we need the relation between the lexicographical order and prefix and suffix normality.

Lemma 1

The prefix normal form of a class is the lexicographically largest element in the class and the suffix-normal of a class is a LR.

Lemma 1 implies that a word being prefix and suffix normal forms a singleton class w.r.t. Inline graphic. As mentioned Inline graphic only holds for palindromes.

Proposition 1

For a word Inline graphic it holds that Inline graphic iff Inline graphic.

The general part of this section is concluded by a somewhat artificial equation which is nevertheless useful for pnPals : by Inline graphic with Inline graphic for Inline graphic and Inline graphic we get

graphic file with name M122.gif

The rest of the section will cover properties of the LRs of a class.

Remark 2

For completeness, we mention that Inline graphic is the only even LR w.r.t. Inline graphic and the only pnPal starting with Inline graphic. Moreover, Inline graphic is the largest LR. As we show later in the paper Inline graphic and Inline graphic are of minor interest in the recursive process due to their speciality.

The following lemma is an extension of [5, Lemma 1] for the suffix-one function by relating the prefix and the suffix of the word Inline graphic for a least representative. Intuitively the suffix normality implies that the Inline graphics are more at the end of the word w rather than at the beginning: consider for instance Inline graphic for Inline graphic. The associated word w cannot be suffix normal since the suffix of length two has only one Inline graphic (Inline graphic) but by Inline graphic, and Inline graphic we get that within two letters two Inline graphics are present and consequently Inline graphic. Thus, a word w is only least representative if the amount of Inline graphics at the end of Inline graphic does not exceed the amount of Inline graphics at the beginning of Inline graphic.

Lemma 2

Let Inline graphic be a LR. Then we have

graphic file with name M144.gif

The remaining part of this section presents results for prefix normal palindromes. Notice that for Inline graphic with Inline graphic with Inline graphic is not necessarily a pnPal; consider for instance Inline graphic with Inline graphic. The following lemma shows a result for prefix normal palindromes which is folklore for palindromes substituting Inline graphic by Inline graphic or Inline graphic.

Lemma 3

For Inline graphic with Inline graphic we have

graphic file with name M153.gif

In the following we give a characterisation of when a palindrome w is prefix normal depending on its maximum-ones function Inline graphic and a derived function Inline graphic. In particular we observe that Inline graphic if and only if w is a prefix normal palindrome. Intuitively Inline graphic captures the progress of Inline graphic in reverse order. This is an intriguing result because it shows that properties regarding prefix and suffix normality can be observed when Inline graphic are considered in their serialised representation.

Definition 4

For Inline graphic define Inline graphic by Inline graphic with the extension Inline graphic of f and Inline graphic. Define Inline graphic and Inline graphic analogously.

Example 1

Consider the pnPal Inline graphic with Inline graphic. Then Inline graphic is 43221 and we have Inline graphic. On the other hand for Inline graphic we have Inline graphic and Inline graphic and Inline graphic and thus Inline graphic.

The following lemma shows a connection between the reversed prefix-ones function and the suffix-ones function that holds for all palindromes.

Lemma 4

For Inline graphic we have Inline graphic.

By Lemma 4 we get Inline graphic since Inline graphic for a palindrome w. As advocated earlier, our main theorem of this part (Theorem 1) gives a characterisation of pnPals. The theorem allows us to decide if a word is a pnPal by only looking at the maximum-ones-function, thus a comparison of all factors is not required.

Theorem 1

Let Inline graphic. Then w is a pnPal if and only if Inline graphic.

Table 2 presents the amount of pnPals up to length 30 These results support the conjecture in [5] that there is a different behaviour for even and odd length of the word.

Table 2.

Number of pnPals. [15] (A308465)

i 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
# 2 2 3 3 5 4 8 7 12 11 21 18 36 31 57
i 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
# 55 104 91 182 166 308 292 562 512 1009 928 1755 1697 3247 2972

Recursive Construction of Prefix Normal Classes

In this section we investigate how to generate LRs of length Inline graphic using the LRs of length n. This is similar to the work of Fici and Lipták [14] except they investigated appending a letter to prefix normal words while we explore the behaviour on prepending letters to LRs. Consider the words Inline graphic and Inline graphic, both being (different) LRs of length 4. Prepending a Inline graphic to them leads to Inline graphic and Inline graphic which are pn-equivalent. We say that v and w collapse and denote it by Inline graphic. Hence for determining the index of Inline graphic based on the least representatives of length Inline graphic, only the least representative of one class matters.

Definition 5

Two words Inline graphic collapse if Inline graphic holds. This is denoted by Inline graphic.

Prepending a Inline graphic to a non LR will never lead to a LR. Therefore It is sufficient to only look at LRs. Since collapsing is an equivalence relation, denote the equivalence class w.r.t. Inline graphic of a word Inline graphic by Inline graphic. Next, we present some general results regarding the connections between the LRs of lengths n and Inline graphic. As mentioned in Remark 2, Inline graphic and Inline graphic are for all Inline graphic LRs. This implies that they do not have to be considered in the recursive process.

Remark 3

By [14] a word Inline graphic is prefix-normal if w is prefix-normal. Consequently we know that if a word Inline graphic is suffix normal, Inline graphic is suffix normal as well. This leads in accordance to the naïve upper bound of Inline graphic to a naïve lower bound of Inline graphic for Inline graphic.

Remark 4

The maximum-ones functions for Inline graphic and Inline graphic are equal on all Inline graphic and Inline graphic since the factor determining the maximal number of Inline graphic’s is independent of the leading Inline graphic. Prepending Inline graphic to a word w may result in a difference between Inline graphic and Inline graphic, but notice that since only one Inline graphic is prepended, we always have Inline graphic for all Inline graphic. In both cases we have Inline graphic for Inline graphic and Inline graphic and Inline graphic as well as Inline graphic.

Firstly we improve the naïve upper bound to Inline graphic by proving that only LRs in Inline graphic can become LRs in Inline graphic by prepending Inline graphic or Inline graphic.

Proposition 2

Let Inline graphic not be LR. Neither Inline graphic nor Inline graphic are LRs in Inline graphic.

By Proposition 1 prefix (and thus suffix) normal palindromes form a singleton class. This implies immediately that a word Inline graphic such that Inline graphic is a prefix normal palindrome, does not collapse with any other Inline graphic. The next lemma shows that even prepending once a Inline graphic and once a Inline graphic to different words leads only to equivalent words in one case.

Lemma 5

Let Inline graphic be different LRs. Then Inline graphic if and only if Inline graphic and Inline graphic.

By Lemma 5 and Remark 3 it suffices to investigate the collapsing relation on prepanding Inline graphics. The following proposition characterises the LR Inline graphic among the elements Inline graphic for all LRs Inline graphic with Inline graphic for Inline graphic.

Proposition 3

Let Inline graphic be a LR. Then Inline graphic is a LR if and only if Inline graphic holds for Inline graphic and Inline graphic.

Corollary 1

Let Inline graphic. Then Inline graphic for Inline graphic and Inline graphic. Moreover Inline graphic for Inline graphic and Inline graphic.

This characterization is unfortunately not convenient for determining either the number of LRs of length Inline graphic from the ones from length n or the collapsing LRs of length n. For a given word w, the maximum-ones function Inline graphic has to be determined, Inline graphic to be extended by Inline graphic, and finally the associated word - under the assumption Inline graphic has to be checked for being suffix normal. For instance, given Inline graphic leads to Inline graphic, and is extended to Inline graphic. This would correspond to Inline graphic which is not suffix normal and thus w is not extendable to a new LR. The following two lemmata reduce the amount of LRs that needs to be checked for extensibility.

Lemma 6

Let Inline graphic be a LR such that Inline graphic is a LR as well. Then for all LRs Inline graphic collapsing with Inline graphic holds for all Inline graphic, i.e. all other LRs have a smaller maximal-one sum.

Corollary 2

If Inline graphic and Inline graphic are LRs with Inline graphic and Inline graphic then Inline graphic.

Remark 5

By Corollary 2 the lexicographically smallest LR w among the collapsing leads to the LR of Inline graphic. Thus if w is a LR not collapsing with any lexicographically smaller word then Inline graphic is LR.

Before we present the theorem characterizing exactly the collapsing words for a given word w, we show a symmetry-property of the LRs which are not extendable to LRs, i.e. a property of words which collapse.

Lemma 7

Let Inline graphic be a LR. Then Inline graphic for some Inline graphic iff Inline graphic.

By [5, Lemma 10] a word Inline graphic is prefix normal if and only if Inline graphic for all Inline graphic. The following theorem extends this result for determining the collapsing words Inline graphic for a given word w.

Theorem 2

Let Inline graphic be a LR and Inline graphic with Inline graphic. Let moreover Inline graphic for all Inline graphic with Inline graphic. Then Inline graphic iff

  1. Inline graphic for all Inline graphic,

  2. Inline graphic implies Inline graphic,

  3. Inline graphic

Theorem 2 allows us to construct the equivalence classes w.r.t. the least representatives of the previous length but more tests than necessary have to be performed: Consider, for instance Inline graphic which is a smallest LR of length 17 not collapsing with any lexicographically smaller LR. For w we have Inline graphic where the dots just act as separators between letters. Thus we know for any Inline graphic collapsing with w, that Inline graphic and Inline graphic. The constraints Inline graphic and Inline graphic implies Inline graphic. First the check that Inline graphic is impossible excludes Inline graphic. Since no collapsing word can have a factor of length 2 with only one Inline graphic, a band in which the possible values range can be defined by the unique greatest collapsing word Inline graphic. It is not surprising that this word is connected with the prefix normal form. The following two lemmata define the band in which the possible collapsing words Inline graphic are.

Lemma 8

Let Inline graphic be a LR with Inline graphic for all Inline graphic with Inline graphic. Set Inline graphic. Then Inline graphic and for all LRs Inline graphic with Inline graphic and all Inline graphic Inline graphic, thus Inline graphic.

Notice that Inline graphic is not necessarily a LR in Inline graphic witnessed by the word of the last example. For w we get Inline graphic with Inline graphic and Inline graphic violating the symmetry property given in Lemma 7. The following lemma alters Inline graphic into a LR which represents still the lower limit of the band.

Lemma 9

Let Inline graphic be a LR such that Inline graphic is also a LR. Let Inline graphic with Inline graphic, and I the set of all Inline graphic with

graphic file with name M326.gif

and Inline graphic for all Inline graphic. Then Inline graphic defined such that Inline graphic for all Inline graphic and Inline graphic (Inline graphic resp.) for all Inline graphic holds, collapses with w.

Remark 6

Lemma 9 applied to Inline graphic gives the lower limit of the band. Let Inline graphic denote the output of this application for a given Inline graphic according to Lemma 9.

Continuing with the example, we firstly determine Inline graphic for Inline graphic Inline graphic. We get with Inline graphic Since for all collapsing Inline graphic we have Inline graphic is determined for Inline graphic. Since the value for 5 determines the one for 13 there are only two possibilities, namely Inline graphic and Inline graphic and Inline graphic and Inline graphic. Notice that the words Inline graphic corresponding to the generated words Inline graphic are not necessarily LRs of the shorter length as witnessed by the one with Inline graphic and Inline graphic. In this example this leads to at most three words being not only in the class but also in the list of former representatives. Thus we are able to produce an upper bound for the cardinality of the class. Notice that in any case we only have to test the first half of Inline graphic’s positions by Lemma 7. This leads to the following definition.

Table 3.

f for Inline graphic.

i 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Inline graphic 1 2 3 4 5 5 6 7 8 8 8 9 10 10 11 12 13
Inline graphic 1 2 3 4 4 5 6 7 7 7 8 9 9 10 11 12 13
Inline graphic 1 2 3 4 4 5 6 7 7 8 8 9 9 10 11 12 13

Definition 6

Let Inline graphic be the Hamming-distance. The palindromic distance Inline graphic is defined by Inline graphic. Define the palindromic prefix length Inline graphic by Inline graphic.

The palindromic distance gives the minimal number of positions in which a bit has to be flipped for obtaining a palindrome. Thus, Inline graphic for all palindromes w, and, for instance, Inline graphic since the first half of w and the reverse of the second half mismatch in two positions. The palindromic prefix length determines the length of w’s longest prefix being a palindrome. For instance Inline graphic and Inline graphic. Since a LR w determines the upper limit of the band and Inline graphic the lower limit, the palindromic distance of Inline graphic is in relation to the positions of Inline graphic in which collapsing words may differ from w.

Theorem 3

If Inline graphic and Inline graphic are both LRs then Inline graphic.

For an algorithmic approach to determine the LRs of length n, we want to point out that the search for collapsing words can also be reduced using the palindromic prefix length. Let Inline graphic be the LRs of length Inline graphic. For each w we keep track of Inline graphic. For each Inline graphic we check firstly if Inline graphic since in this case the prepended Inline graphic leads to a palindrome. Only if this is not the case, Inline graphic needs to be determined. All collapsing words computed within the band of Inline graphic and Inline graphic are deleted in Inline graphic.

In the remaining part of the section we investigate the set Inline graphic w.r.t. Inline graphic for Inline graphic. This leads to a second calculation for an upper bound and a refinement for determining the LRs of Inline graphic faster.

Lemma 10

If Inline graphic then Inline graphic is not a LR but Inline graphic is a LR.

Remark 7

By Lemma 10 follows that all words Inline graphic collapse with a smaller LR. Thus, for all Inline graphic, an upper bound for Inline graphic is given by Inline graphic.

For a closed recursive calculation of the upper bound in Remark 7, the exact number Inline graphic is needed. Unfortunately we are not able to determine Inline graphic for arbitrary Inline graphic. The following results show relations between prefix normal palindromes of different lengths. For instance, if Inline graphic then 1w1 is a prefix normal palindrome as well. The importance of the pnPals is witnessed by the following estimation.

Theorem 4

For all Inline graphic and Inline graphic we have

graphic file with name M394.gif

The following results only consider pnPals that are different from Inline graphic and Inline graphic. Notice for these special palindromes that Inline graphic, Inline graphic for an appropriate Inline graphic but Inline graphic.

Lemma 11

If Inline graphic then neither ww nor Inline graphic are prefix normal palindromes.

Lemma 12

Let Inline graphic with Inline graphic. If Inline graphic is also a prefix normal palindrome then Inline graphic or Inline graphic for some Inline graphic and Inline graphic.

A characterisation for Inline graphic being a pnPal is more complicated. By Inline graphic follows that a block of Inline graphics contains at most the number of Inline graphics of the previous block. But if such a block contains strictly less Inline graphics the number of Inline graphics in between can increase by the same amount the number of Inline graphics decreased.

Lemma 13

Let Inline graphic. If Inline graphic is also a prefix normal palindrome then Inline graphic.

Lemmas 11, 12, and 13 indicate that a characterization of prefix normal palindromes based on smaller ones is hard to determine.

Conclusion

Based on the work in [14], we investigated prefix normal palindromes in Sect. 3 and gave a characterisation based on the maximum-ones function. At the end of Sect. 4 results for a recursive approach to determine prefix normal palindromes are given. These results show that easy connections between prefix normal palindromes of different lengths cannot be expected. By introducing the collapsing relation we were able to partition the set of extension-critical words introduced in [14]. This leads to a characterization of collapsing words which can be extended to an algorithm determining the corresponding equivalence classes. Moreover we have shown that palindromes and the collapsing classes are related.

The concrete values for prefix normal palindromes and the index of the collapsing relation remain an open problem as well as the cardinality of the equivalence classes w.r.t. the collapsing relation. Further investigations of the prefix normal palindromes and the collapsing classes lead directly to the index of the prefix equivalence.

Acknowledgments

We would like to thank Florin Manea for helpful discussions and advice.

Contributor Information

Alberto Leporati, Email: alberto.leporati@unimib.it.

Carlos Martín-Vide, Email: carlos.martin@urv.cat.

Dana Shapira, Email: shapird@g.ariel.ac.il.

Claudio Zandron, Email: zandron@disco.unimib.it.

Pamela Fleischmann, Email: fpa@informatik.uni-kiel.de.

Mitja Kulczynski, Email: mku@informatik.uni-kiel.de.

Dirk Nowotka, Email: dn@informatik.uni-kiel.de.

Danny Bøgsted Poulsen, Email: dannybpoulsen@cs.aau.dk.

References

  • 1.Balister P, Gerke S. The asymptotic number of prefix normal words. J. Comb. Theory. 2019;784:75–80. doi: 10.1016/j.tcs.2019.03.036. [DOI] [Google Scholar]
  • 2.Burcsi P, Cicalese F, Fici G, Lipták Z. Algorithms for jumbled pattern matching in strings. Int. J. Found. CS. 2012;23(2):357–374. doi: 10.1142/S0129054112400175. [DOI] [Google Scholar]
  • 3.Burcsi P, Fici G, Lipták Z, Ruskey F, Sawada J. On combinatorial generation of prefix normal words. In: Kulikov AS, Kuznetsov SO, Pevzner P, editors. Combinatorial Pattern Matching; Cham: Springer; 2014. pp. 60–69. [Google Scholar]
  • 4.Burcsi P, Fici G, Lipták Z, Ruskey F, Sawada J. Normal, abby normal, prefix normal. In: Ferro A, Luccio F, Widmayer P, editors. Fun with Algorithms. Cham: Springer; 2014. pp. 74–88. [Google Scholar]
  • 5.Burcsi P, Fici G, Lipták Z, Ruskey F, Sawada J. On prefix normal words and prefix normal forms. TCS. 2017;659:1–13. doi: 10.1016/j.tcs.2016.10.015. [DOI] [Google Scholar]
  • 6.Cassaigne J, Richomme G, Saari K, Zamboni LQ. Avoiding Abelian powers in binary words with bounded Abelian complexity. Int. J. Found. CS. 2011;22(04):905–920. doi: 10.1142/S0129054111008489. [DOI] [Google Scholar]
  • 7.Chan, T.M., Lewenstein, M.: Clustered integer 3SUM via additive combinatorics. In: 47th ACM Symposium on TOC, pp. 31–40. ACM (2015)
  • 8.Cicalese F, Lipták Z, Rossi M. Bubble-flip—a new generation algorithm for prefix normal words. In: Klein ST, Martín-Vide C, Shapira D, editors. Language and Automata Theory and Applications; Cham: Springer; 2018. pp. 207–219. [Google Scholar]
  • 9.Cicalese, F., Lipták, Z., Rossi, M.: On infinite prefix normal words. In: Proceedings of the SOFSEM, pp. 122–135 (2019)
  • 10.Coven EM, Hedlund GA. Sequences with minimal block growth. TCS. 1973;7(2):138–153. [Google Scholar]
  • 11.Currie J, Rampersad N. Recurrent words with constant Abelian complexity. Adv. Appl. Math. 2011;47(1):116–124. doi: 10.1016/j.aam.2010.05.001. [DOI] [Google Scholar]
  • 12.Dassow J. Parikh mapping and iteration. In: Calude CS, PĂun G, Rozenberg G, Salomaa A, editors. Multiset Processing; Heidelberg: Springer; 2001. pp. 85–101. [Google Scholar]
  • 13.Ehlers T, Manea F, Mercas R, Nowotka D. k-Abelian pattern matching. J. Discrete Algorithms. 2015;34:37–48. doi: 10.1016/j.jda.2015.05.004. [DOI] [Google Scholar]
  • 14.Fici G, Lipták Z. On prefix normal words. In: Mauri G, Leporati A, editors. Developments in Language Theory; Heidelberg: Springer; 2011. pp. 228–238. [Google Scholar]
  • 15.OEIS Foundation Inc.: The on-line encyclopedia of integer sequencess (2019). http://oeis.org/
  • 16.Karhumäki J. Generalized Parikh mappings and homomorphisms. Inf. Control. 1980;47(3):155–165. doi: 10.1016/S0019-9958(80)90493-3. [DOI] [Google Scholar]
  • 17.Keränen V. Abelian squares are avoidable on 4 letters. In: Kuich W, editor. Automata, Languages and Programming; Heidelberg: Springer; 1992. pp. 41–52. [Google Scholar]
  • 18.Lee L-K, Lewenstein M, Zhang Q. Parikh matching in the streaming model. In: Calderón-Benavides L, González-Caro C, Chávez E, Ziviani N, editors. String Processing and Information Retrieval; Heidelberg: Springer; 2012. pp. 336–341. [Google Scholar]
  • 19.Mateescu, A., Salomaa, A., Salomaa, K., Yu, S.: On an extension of the Parikh mapping, 06 September 2000. http://citeseer.ist.psu.edu/440186.html
  • 20.Mateescu A, Salomaa A, Yu S. Subword histories and Parikh matrices. J. Comput. Syst. Sci. 2004;68(1):1–21. doi: 10.1016/j.jcss.2003.04.001. [DOI] [Google Scholar]
  • 21.Parikh RJ. On context-free languages. J. ACM. 1966;13:570–581. doi: 10.1145/321356.321364. [DOI] [Google Scholar]
  • 22.Puzynina S, Zamboni LQ. Abelian returns in Sturmian words. J. Comb. Theory. 2013;120(2):390–408. doi: 10.1016/j.jcta.2012.09.002. [DOI] [Google Scholar]
  • 23.Richomme G, Saari K, Zamboni LQ. Abelian complexity of minimal subshifts. J. Lond. Math. Soc. 2010;83(1):79–95. doi: 10.1112/jlms/jdq063. [DOI] [Google Scholar]
  • 24.Richomme G, Saari K, Zamboni LQ. Balance and Abelian complexity of the Tribonacci word. Adv. Appl. Math. 2010;45(2):212–231. doi: 10.1016/j.aam.2010.01.006. [DOI] [Google Scholar]
  • 25.Salomaa A. Connections between subwords and certain matrix mappings. TCS. 2005;340(2):188–203. doi: 10.1016/j.tcs.2005.03.024. [DOI] [Google Scholar]

Articles from Language and Automata Theory and Applications are provided here courtesy of Nature Publishing Group

RESOURCES