Preimages under the Bubblesort Operator
Open Access
- 6 October 2022
- journal article
- research article
- Published by The Electronic Journal of Combinatorics in The Electronic Journal of Combinatorics
- Vol. 29 (4) , P4.32
Abstract
We study preimages of permutations under the bubblesort operator $\mathbf{B}$. We achieve a description of these preimages much more complete than what is known for the more complicated sorting operators $\mathbf{S}$ (stacksort) and $\mathbf{Q}$ (queuesort). We describe explicitly the set of preimages under $\mathbf{B}$ of any permutation $\pi$ from the left-to-right maxima of $\pi$, showing that there are $2^{k-1}$ such preimages if $k$ is the number of these left-to-right maxima. We further consider, for each $n$, the tree $T_n$ recording all permutations of size $n$ in its nodes, in which an edge from child to parent corresponds to an application of $\mathbf{B}$ (the root being the identity permutation), and we present several properties of these trees. In particular, for each permutation $\pi$, we show how the subtree of $T_n$ rooted at $\pi$ is determined by the number of left-to-right maxima of $\pi$ and the length of the longest suffix of left-to-right maxima of $\pi$. Building on this result, we determine the number of nodes and leaves at every height in such trees, and we recover (resp. obtain) the average height of nodes (resp. leaves) in $T_n$.
Keywords
All Related Versions
This publication has 9 references indexed in Scilit:
- On Promotion and Quasi-Tangled Labelings of PosetsAnnals of Combinatorics, 2023
- Enumeration of Stack-Sorting Preimages via a Decomposition LemmaDiscrete Mathematics & Theoretical Computer Science, 2021
- Fertility monotonicity and average complexity of the stack-sorting mapEuropean Journal of Combinatorics, 2021
- Stack-sorting, set partitions, and Lassalle's sequenceJournal of Combinatorial Theory, Series A, 2020
- Quantifying Noninvertibility in Discrete Dynamical SystemsThe Electronic Journal of Combinatorics, 2020
- Polyurethane TogglesThe Electronic Journal of Combinatorics, 2020
- Sorting and preimages of pattern classesDiscrete Mathematics & Theoretical Computer Science, 2012
- Sorted and/or sortable permutationsDiscrete Mathematics, 2000
- ECO:a methodology for the enumeration of combinatorial objectsJournal of Difference Equations and Applications, 1999