Fast algorithms for generating integer partitions

被引:46
作者
Zoghbi, A
Stojmenovic, I [1 ]
机构
[1] Univ Ottawa, Dept Comp Sci, SITE, Ottawa, ON K1N 6N5, Canada
[2] Bell No Res, Ottawa, ON K1Y 4H7, Canada
基金
加拿大自然科学与工程研究理事会;
关键词
combinatorial objects; lexicographic order; integer partitions;
D O I
10.1080/00207169808804755
中图分类号
O29 [应用数学];
学科分类号
070104 ;
摘要
We present two new algorithms for generating integer partitions in the standard representation. They generate partitions in lexicographic and anti-lexicographic order, respectively. We prove that both algorithm generate partitions with constant average delay, exclusive of the output. These are the first known algorithms to produce partitions in the standard representation and with constant average delay. The performance of all known integer partition algorithms is measured and compared, separately for the standard and multiplicity representation. An empirical test shows that both new algorithms are several times faster than any of previously known algorithms for generating unrestricted integer partitions in the standard representation. Moreover, they are faster than any known algorithm for generating integer partition in the multiplicity representation (exclusive of the output).
引用
收藏
页码:319 / 332
页数:14
相关论文
共 41 条
[1]  
Akl S. G., 1993, Journal of Combinatorial Mathematics and Combinatorial Computing, V13, P107
[2]   A COMPARISON OF COMBINATION GENERATION METHODS [J].
AKL, SG .
ACM TRANSACTIONS ON MATHEMATICAL SOFTWARE, 1981, 7 (01) :42-45
[3]  
Andrews G. E., 1976, The Theory of Partitions
[4]  
[Anonymous], 1971, ELEMENTS COMBINATORI
[5]  
BELBARAKA M, 1944, INFORMATION PROCESSI, V49, P27
[6]  
Berge C., 1971, Principles of Combinatorics
[7]   CONSTANT TIME GENERATION OF ROOTED TREES [J].
BEYER, T ;
HEDETNIEMI, SM .
SIAM JOURNAL ON COMPUTING, 1980, 9 (04) :706-712
[8]  
Dickson L. E., 1971, HIST THEORY NUMBERS, VII
[9]   A FAST ITERATIVE ALGORITHM FOR GENERATING SET PARTITIONS [J].
DJOKIC, B ;
MIYAKAWA, M ;
SEKIGUCHI, S ;
SEMBA, J ;
STOJMENOVIC, I .
COMPUTER JOURNAL, 1989, 32 (03) :281-282
[10]  
FENNER TI, 1981, ACTA INFORM, V16, P237, DOI 10.1007/BF00261261