Constant time generation of set partitions

被引:12
|
作者
Kawano, S [1 ]
Nakano, S [1 ]
机构
[1] Gunma Univ, Dept Comp Sci, Kiryu, Gumma 3768515, Japan
关键词
algorithm; enumeration; the Stirling number of the second kind; the Bell number; Gray code;
D O I
10.1093/ietfec/e88-a.4.930
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
In this paper we give a simple algorithm to generate all partitions of {1, 2, (. . .), n} into k non-empty subsets. The number of such partitions is known as the Stirling number of the second kind. The algorithm generates each partition in constant time without repetition. By choosing k = 1, 2,(. . .), n we can also generate all partitions of {1, 2,(. . .), n} into subsets. The number of such partitions is known as the Bell number.
引用
收藏
页码:930 / 934
页数:5
相关论文
共 50 条
  • [1] Constant time generation of integer partitions
    Yamanaka, Katsuhisa
    Kawano, Shin-ichiro
    Kikuchi, Yosuke
    Nakano, Shin-ichi
    [J]. IEICE TRANSACTIONS ON FUNDAMENTALS OF ELECTRONICS COMMUNICATIONS AND COMPUTER SCIENCES, 2007, E90A (05) : 888 - 895
  • [2] Simple constant amortized time generation of fixed length numeric partitions
    Boyer, JM
    [J]. JOURNAL OF ALGORITHMS-COGNITION INFORMATICS AND LOGIC, 2005, 54 (01): : 31 - 39
  • [3] On parallel generation of set partitions in associative: Processor architectures
    Kokosinski, Z
    [J]. INTERNATIONAL CONFERENCE ON PARALLEL AND DISTRIBUTED PROCESSING TECHNIQUES AND APPLICATIONS, VOLS I-V, PROCEEDINGS, 1999, : 1257 - 1262
  • [4] GENERATION OF ALL CLOSED PARTITIONS ON STATE SET OF A SEQUENTIAL MACHINE
    YANG, CC
    [J]. IEEE TRANSACTIONS ON COMPUTERS, 1974, C 23 (05) : 530 - 533
  • [5] SET PARTITIONS
    CARLITZ, L
    [J]. FIBONACCI QUARTERLY, 1976, 14 (04): : 327 - 342
  • [6] Constant time generation of derangements
    Korsh, JF
    LaFollette, PS
    [J]. INFORMATION PROCESSING LETTERS, 2004, 90 (04) : 181 - 186
  • [7] EXTENSIONS OF SET PARTITIONS
    LINDQUIST, N
    SIERKSMA, G
    [J]. JOURNAL OF COMBINATORIAL THEORY SERIES A, 1981, 31 (02) : 190 - 198
  • [8] Records in set partitions
    Knopfmacher, Arnold
    Mansour, Toufik
    Wagner, Stephan
    [J]. ELECTRONIC JOURNAL OF COMBINATORICS, 2010, 17 (01):
  • [9] Combinatorics of Set Partitions
    Ozsvart, Loszlo
    [J]. ACTA SCIENTIARUM MATHEMATICARUM, 2014, 80 (3-4): : 701 - 701
  • [10] Partitions of a circular set
    Lossers, O. P.
    [J]. AMERICAN MATHEMATICAL MONTHLY, 2007, 114 (03): : 265 - 266