Source author record

Lapo Cioni

Explore this author’s publications, collaborators and research topics. This catalog record has not been claimed by its author.

ResearcherUnclaimed source record

Catalog footprint

Research overview

2works
2topics
2close collaborators

Published work

2 publications

preprint2022arXiv

Preimages under the bubblesort operator

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 ππ from the left-to-right maxima of ππ, 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 ππ, we show how the subtree of TnT_n 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 TnT_n.

preprint2021arXiv

Preimages under the Queuesort algorithm

Following the footprints of what have been done with the algorithm Stacksort, we investigate the preimages of the map associated with a slightly less well known algorithm, called Queuesort. After having described an equivalent version of Queuesort, we provide a recursive description of the set of all preimages of a given permutation, which can be also translated into a recursive procedure to effectively find such preimages. We then deal with some enumerative issues. More specifically, we investigate the cardinality of the set of preimages of a given permutation, showing that all cardinalities are possible, except for 3. We also give exact enumeration results for the number of permutations having 0,1 and 2 preimages. Finally, we consider the special case of those permutations ππ whose set of left-to-right maxima is the disjoint union of a prefix and a suffix of ππ: we determine a closed formula for the number of preimages of such permutations, which involves two different incarnations of ballot numbers, and we show that our formula can be expressed as a linear combination of Catalan numbers.

Research graph

See the researcher in context

Open full explorer

Inspect adjacent papers, topics, institutions and collaborators without losing the researcher page.

Building this map preview

BZPEER is loading the nearby papers, people, topics and institutions for this page.