Indexed metadata

Preimages under the Bubblesort Operator

Mathilde Bouvel, Lapo Cioni, Luca Ferrari

Source record

Source: Crossref

Published: Nov 18, 2022

DOI: 10.37236/11390

Open original source ↗

Source abstract

We study preimages of permutations under the bubblesort operator B\mathbf{B}. We achieve a description of these preimages much more complete than what is known for the more complicated sorting operators S\mathbf{S} (stacksort) and Q\mathbf{Q} (queuesort). We describe explicitly the set of preimages under B\mathbf{B} of any permutation π\pi from the left-to-right maxima of π\pi, showing that there are 2k−12^{k-1} such preimages if kk is the number of these left-to-right maxima. We further consider, for each nn, the tree TnT_n recording all permutations of size nn in its nodes, in which an edge from child to parent corresponds to an application of B\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 TnT_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 TnT_n.

Evidence graph

No public relationships recorded yet.

Integrity note: This page is a factual metadata record created by deterministic ingestion. It is not a claim that the work moves a mathematical frontier or has been independently verified.

Preimages under the Bubblesort Operator — Mathematical Frontier Network