Preimages under the bubblesort operator
Abstract
We study preimages of permutations under the bubblesort operator . We achieve a description of these preimages much more complete than what is known for the more complicated sorting operators (stacksort) and (queuesort). We describe explicitly the set of preimages under of any permutation from the left-to-right maxima of , showing that there are such preimages if is the number of these left-to-right maxima. We further consider, for each , the tree recording all permutations of size in its nodes, in which an edge from child to parent corresponds to an application of (the root being the identity permutation), and we present several properties of these trees. In particular, for each permutation , we show how the subtree of rooted at is determined by the number of left-to-right maxima of and the length of the longest suffix of left-to-right maxima of . 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 .
Keywords
Cite
@article{arxiv.2204.12936,
title = {Preimages under the bubblesort operator},
author = {Mathilde Bouvel and Lapo Cioni and Luca Ferrari},
journal= {arXiv preprint arXiv:2204.12936},
year = {2022}
}