Algorithmic and algebraic aspects of unshuffling permutations

Abstract A permutation is said to be a square if it can be obtained by shuffling two order-isomorphic patterns. The definition is intended to be the natural counterpart to the ordinary shuffle of words and languages. In this paper, we tackle the problem of recognizing square permutations from both the point of view of algebra and algorithms. On the one hand, we present some algebraic and combinatorial properties of the shuffle product of permutations. We follow an unusual line consisting in defining the shuffle of permutations by means of an unshuffling operator, known as a coproduct. This strategy allows to obtain easy proofs for algebraic and combinatorial properties of our shuffle product. We besides exhibit a bijection between square ( 213 , 231 ) -avoiding permutations and square binary words. On the other hand, by using a pattern avoidance criterion on directed perfect matchings, we prove that recognizing square permutations is NP -complete.

[1]  Yannic Vargas,et al.  Hopf algebra of permutation pattern functions , 2014 .

[2]  Alain Lascoux,et al.  Noncommutative symmetric functions , 1994 .

[3]  N. J. A. Sloane,et al.  The On-Line Encyclopedia of Integer Sequences , 2003, Electron. J. Comb..

[4]  J C Spehner Rapid calculation of shuffles of two words , 1986 .

[5]  Anthony Mansfield,et al.  On the computational complexity of a merge recognition problem , 1983, Discret. Appl. Math..

[6]  Gian-Carlo Rota,et al.  Coalgebras and Bialgebras in Combinatorics , 1979 .

[7]  Stéphane Vialette,et al.  Unshuffling Permutations , 2016, LATIN.

[8]  Christian Choffrut,et al.  Combinatorics of Words , 1997, Handbook of Formal Languages.

[9]  Jan van Leeuwen,et al.  Efficient Recognition of Rational Relations , 1982, Inf. Process. Lett..

[10]  Samuel R. Buss,et al.  Unshuffling a square is NP-hard , 2014, J. Comput. Syst. Sci..

[11]  Mike D. Atkinson,et al.  Restricted permutations , 1999, Discret. Math..

[12]  Victor Reiner,et al.  Hopf Algebras in Combinatorics , 2014, 1409.8356.

[13]  Prosenjit Bose,et al.  Pattern Matching for Permutations , 1993, WADS.

[14]  Romeo Rizzi,et al.  On recognising words that are squares for the shuffle product , 2017 .

[15]  Jean-Claude Spehner Le Calcul Rapide des Melanges de Deux Mots , 1986, Theor. Comput. Sci..

[16]  Samuel Eilenberg,et al.  On the Groups H(Π, n), I , 1953 .

[17]  Gérard Duchamp,et al.  Noncommutative Symmetric Functions Vi: Free Quasi-Symmetric Functions and Related Algebras , 2002, Int. J. Algebra Comput..

[18]  D. Henshall,et al.  Shuffling and Unshuffling , 2011, Bull. EATCS.

[19]  David Haussler,et al.  On the Complexity of Iterated Shuffle , 1984, J. Comput. Syst. Sci..