Preimages under the Queuesort algorithm

02/15/2021
by   Lapo Cioni, et al.
0

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.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
05/28/2018

Two types of permutation polynomials with special forms

Let q be a power of a prime and F_q be a finite field with q elements. I...
research
08/02/2022

Sums of k-bonacci Numbers

We give a combinatorial proof of a formula giving the partial sums of th...
research
02/24/2019

Some new insights into Karatsuba's algorithm

The recursion tree resulting from Karatsuba's formula is built here by u...
research
11/03/2022

Repeatable Random Permutation Set

Random permutation set (RPS), as a recently proposed theory, enables pow...
research
03/20/2019

Permutation patterns in genome rearrangement problems: the reversal model

In the context of the genome rearrangement problem, we analyze two well ...
research
04/02/2018

On the Reeb spaces of definable maps

We prove that the Reeb space of a proper definable map in an arbitrary o...
research
05/30/2021

Optimality of the recursive Neyman allocation

We derive a formula for the optimal sample allocation in a general strat...

Please sign up or login with your details

Forgot password? Click here to reset