multicool: Permutations of Multisets in Cool-Lex Order

A set of tools to permute multisets without loops or hash tables and to generate integer partitions. The permutation functions are based on C code from Aaron Williams. Cool-lex order is similar to colexicographical order. The algorithm is described in Williams, A. (2009) <doi:10.1145/1496770.1496877> Loopless Generation of Multiset Permutations by Prefix Shifts. Symposium on Discrete Algorithms, New York, United States. The permutation code is distributed without restrictions. The code for stable and efficient computation of multinomial coefficients comes from Dave Barber. The code can be download from <> and is distributed without conditions. The package also generates the integer partitions of a positive, non-zero integer n. The C++ code for this is based on Python code from Jerome Kelleher which can be found here <>. The C++ code and Python code are distributed without conditions.

Version: 0.1-10
Depends: methods, Rcpp (≥ 0.11.2)
LinkingTo: Rcpp
Published: 2016-11-25
Author: James Curran, Aaron Williams, Jerome Kelleher, Dave Barber
Maintainer: James Curran <j.curran at>
License: GPL-2
NeedsCompilation: yes
Materials: README
CRAN checks: multicool results


Reference manual: multicool.pdf
Package source: multicool_0.1-10.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
OS X El Capitan binaries: r-release: multicool_0.1-10.tgz
OS X Mavericks binaries: r-oldrel: multicool_0.1-10.tgz
Old sources: multicool archive

Reverse dependencies:

Reverse depends: DNAtools, hpcwld
Reverse imports: alphabetr, ks, SIDES


Please use the canonical form to link to this page.