Fast Algorithm for Generating Ascending Compositions

In this paper we give a fast algorithm to generate all partitions of a positive integer n. Integer partitions may be encoded as either ascending or descending compositions for the purposes of systematic generation. It is known that the ascending composition generation algorithm is substantially more efficient than its descending composition counterpart. Using tree structures for storing the partitions of integers, we develop a new ascending composition generation algorithm which is substantially more efficient than the algorithms from the literature.

[1]  Frank G. Garvan,et al.  The MAPLE Book , 2001 .

[2]  Emil Grosswald,et al.  The Theory of Partitions , 1984 .

[3]  N. J. A. Sloane,et al.  The On-Line Encyclopedia of Integer Sequences , 2003, Electron. J. Comb..

[4]  Aaas News,et al.  Book Reviews , 1893, Buffalo Medical and Surgical Journal.

[5]  Charalambos A. Charalambides,et al.  Enumerative combinatorics , 2018, SIGA.

[6]  Rung-Bin Lin Efficient Data Structures for Storing the Partitions of Integers , 2005 .

[7]  George E. Andrews,et al.  Enumerative proofs of certain q-identities , 1967, Glasgow Mathematical Journal.

[8]  Barry O'Sullivan,et al.  Generating All Partitions: A Comparison Of Two Encodings , 2009, ArXiv.