Über diesen Artikel
Online veröffentlicht: 18. Juni 2022
Seitenbereich: 63 - 67
Eingereicht: 31. März 2022
Akzeptiert: 15. Mai 2022
DOI: https://doi.org/10.2478/puma-2022-0010
Schlüsselwörter
© 2022 Lapo Cioni, published by Sciendo
This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 3.0 License.
Following the footprints of what has been done with other sorting devices, we study a popqueue and define an optimal sorting algorithm, called Cons. Our results include a description of the set of all the preimages of a given permutation, an enumeration of the set of the preimages of permutations with some specific properties and, finally, the exact enumeration of permutations having 0, 1 and 2 preimages, respectively, with a characterization of permutations having 3 preimages.