English

Multi-level Loop-less Algorithm for Multi-set Permutations

Data Structures and Algorithms 2015-02-24 v1

Abstract

We present an algorithm that generates multiset permutations in O(1) time for each permutation, that is, by a loop-less algorithm with O(n) extra memory requirement. There already exist several such algorithms that generate multiset permutations in various orders. For multiset permutations, we combine two loop-less algorithms that are designed in the same principle of tree traversal. Our order of generation is different from any existing order, and the algorithm is simpler and faster than the previous ones. We also apply the new algorithm to parking functions.

Keywords

Cite

@article{arxiv.1502.06062,
  title  = {Multi-level Loop-less Algorithm for Multi-set Permutations},
  author = {Tadao Takaoka},
  journal= {arXiv preprint arXiv:1502.06062},
  year   = {2015}
}
R2 v1 2026-06-22T08:34:29.077Z