multicool: Permutations of Multisets in Cool-Lex Order
Version 0.1-10

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) 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.

Getting started

Package details

AuthorJames Curran, Aaron Williams, Jerome Kelleher, Dave Barber
Date of publication2016-11-25 23:05:03
MaintainerJames Curran <>
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:

Try the multicool package in your browser

Any scripts or data that you put into this service are public.

multicool documentation built on May 30, 2017, 5:51 a.m.