iterpc: Efficient Iterator for Permutations and Combinations

A collection of iterators for generating permutations and combinations with or without replacement; with distinct items or non-distinct items (multiset). The generated sequences are in lexicographical order (dictionary order). The algorithms to generate permutations and combinations are memory efficient. These iterative algorithms enable users to process all sequences without putting all results in the memory at the same time. The algorithms are written in C/C++ for faster performances.

Install the latest version of this package by entering the following in R:
install.packages("iterpc")
AuthorRandy Lai [aut, cre], Martin Broadhurst [aut]
Date of publication2016-05-31 07:49:57
MaintainerRandy Lai <randy.cs.lai@gmail.com>
LicenseGPL-2
Version0.3.0
http://randy3k.github.io/iterpc

View on CRAN

Files

tests
tests/testthat.R
tests/testthat
tests/testthat/test-combination.R tests/testthat/test-permutation.R
src
src/Makevars
src/combination.cpp
src/mbcomb
src/mbcomb/Makefile
src/mbcomb/Examples
src/mbcomb/Examples/combinations.c
src/mbcomb/Examples/multiset-combinations-elements.c
src/mbcomb/Examples/multiset-subsets.c
src/mbcomb/Examples/subsets.c
src/mbcomb/Examples/subset-subsets.c
src/mbcomb/Examples/multiset-subsets-elements.c
src/mbcomb/Examples/partitions.c
src/mbcomb/Examples/k-permutations-elements.c
src/mbcomb/Examples/combinations-elements.c
src/mbcomb/Examples/permutations-elements.c
src/mbcomb/Examples/k-permutations.c
src/mbcomb/Examples/n-tuples.c
src/mbcomb/Examples/partitions-elements.c
src/mbcomb/Examples/subsets-elements.c
src/mbcomb/Examples/multiset-combinations.c
src/mbcomb/Examples/multicombinations.c
src/mbcomb/Examples/permutations.c
src/mbcomb/README
src/mbcomb/Src
src/mbcomb/Src/combination.c
src/mbcomb/Src/k-permutation.c
src/mbcomb/Src/comb-util.c
src/mbcomb/Src/multicombination.c
src/mbcomb/Src/permutation.c
src/mbcomb/Src/n-tuple.c
src/mbcomb/Src/subset.c
src/mbcomb/Src/multiset-subset.c
src/mbcomb/Src/multiset-combination.c
src/mbcomb/Src/subset-subset.c
src/mbcomb/Src/partition.c
src/mbcomb/Include
src/mbcomb/Include/subset.h
src/mbcomb/Include/subset-subset.h
src/mbcomb/Include/permutation.h
src/mbcomb/Include/comb-util.h
src/mbcomb/Include/n-tuple.h
src/mbcomb/Include/multiset-combination.h
src/mbcomb/Include/combination.h
src/mbcomb/Include/partition.h
src/mbcomb/Include/multiset-subset.h
src/mbcomb/Include/k-permutation.h
src/mbcomb/Include/mbcommon.h
src/mbcomb/Include/multicombination.h
src/permutation.cpp
src/RcppExports.cpp
src/utils
src/utils/k-permutation.c
src/utils/k-permutation.h
NAMESPACE
demo
demo/combinations.r
demo/00Index
demo/permutations.r
R
R/combination.R R/iterator.R R/utilities.R R/RcppExports.R R/permutation.R
README.md
MD5
DESCRIPTION
man
man/getnext.Rd man/getall.Rd man/getlength.Rd man/getcurrent.Rd man/np_multiset.Rd man/nc_multiset.Rd man/iter_wrapper.Rd man/multichoose.Rd man/iterpc.Rd

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.