Parallel Algorithms for Generating Integer Partitions and Compositions

Selim G. Akl1, Ivan Stojmenovié2
1Department of Computing and Information Science Queen’s University Kingston, Ontario Canada K7L 3N6
2Computer Science Department University of Ottawa Ottawa, Ontario Canada K1N 9B4

Abstract

We present cost-optimal parallel algorithms for generating partitions and compositions of an integer \(n\) in lexicographic order. The algorithms utilize a linear array of \(n\) processors, where each processor has constant-size memory and is responsible for producing one part of a given partition or composition.