Skip to main content
Log in

An optimal algorithm for generating equivalence relations on a linear array of processors

  • Part I Computer Science
  • Published:
BIT Numerical Mathematics Aims and scope Submit manuscript

Abstract

We describe a cost-optimal parallel algorithm for enumerating all partitions (equivalence relations) of the set {1, ...,n}, in lexicographic order. The algorithm is designed to be executed on a linear array of processors. It usesn processors, each having constant size memory and each being responsible for producing one element of a given set partition. Set partitions are generated with constant delay leading to anO(B n) time solution, whereB n is the total number of set partitions. The same method can be generalized to enumerate some other combinatorial objects such as variations. The algorithm can be made adaptive, i.e. to run on any prespecified number of processors. To illustrate the model of parallel computation, a simple case of enumerating subsets of the set {1, ...,n}, having at mostm (≤n) elements is also described.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

References

  1. S. G. Akl,The Design and Analysis of Parallel Algorithms, Prentice Hall, Englewood Cliffs, New Jersey, 1989.

    Google Scholar 

  2. S. G. Akl,Adaptive and optimal parallel algorithms for enumerating permutations and combinations, The Computer Journal, 30, 5, 433–436, 1987.

    Google Scholar 

  3. S. G. Akl, D. Gries and I. Stojmenović,An optimal parallel algorithm for generating combinations, Information Processing Letters, 33 (1989/90) 135–139.

    Google Scholar 

  4. S. G. Akl, H. Meijer and I. Stojmenović,Optimal parallel algorithms for generating permutations, Technical report No. 90-270, Dept. Comp. and Inf. Sci., Queen's Univ., Kingston, January 1990.

    Google Scholar 

  5. G. H. Chen and M.-S. Chern,Parallel generation of permutations and combinations, BIT, Vol. 26, 1986, 277–283.

    Google Scholar 

  6. B. Chan and S. G. Akl,Generating combinations in parallel, BIT 26, 1, 2–6, 1986.

    Google Scholar 

  7. B. Djokić, M. Miyakawa, S. Sekiguchi, I. Semba and I. Stojmenović,Parallel algorithms for generating subsets and set partitions, Proc. SIGAL Int. Symp. on Algorithms, Tokyo, Japan, August 1990.

  8. B. Djokić, M. Miyakawa, S. Sekiguchi, I. Semba and I. Stojmenović,A fast iterative algorithm for generating set partitions, The Computer Journal, Vol. 32, No. 3, 1989, 281–282.

    Google Scholar 

  9. M. C. Er,Fast algorithm for generating set partitions, The Computer Journal, 31, 3, 283–284, 1988.

    Google Scholar 

  10. P. Gupta and G. P. Bhattacharjee,Parallel generation of permutations, The Computer Journal Vol. 26, No. 2, 1983, 97–105.

    Google Scholar 

  11. P. Gupta and G. P. Bhattacharjee,A parallel derangement generation algorithm, BIT, Vol. 29, 1989, 14–22.

    Google Scholar 

  12. C. J. Lin and J. C. Tsay,A systolic generation of combinations, BIT, Vol. 29, 1989, 23–36.

    Google Scholar 

  13. M. Miyakawa and I. Stojmenović,Classification of P k2, Discrete Applied Mathematics, 28, 1989, 179–192.

    Google Scholar 

  14. M. Mor and A. S. Fraenkel,Permutation generation on vector processors, The Computer Journal, Vol. 25, No. 4, 1982, 423–428.

    Google Scholar 

  15. A. Nijenhius and H. S. Wilf,Combinatorial Algorithms, Academic Press, N. Y., 1978.

    Google Scholar 

  16. G. Pogosyan, M. Miyakawa and A. Nozaki,On the number of clique Boolean functions, Discrete Applied Mathematics, to appear.

  17. I. Semba,An efficient algorithm for generating all partitions of the set {1, ..., n}, Journal of Information Processing, 7, 41–42, 1984.

    Google Scholar 

  18. I. Semba,An efficient algorithm for generating all k-subsets (1 ≤ k ≤ m ≤ n) of the set {1, 2, ..., n} in lexicographic order, Journal of Algorithms, 5, 281–283, 1984.

    Google Scholar 

  19. I. Stojmenović and M. Miyakawa,Applications of subset generating algorithm to base enumeration, knapsack and minimal covering problems, The Computer Journal, 31, 1, 65–70, 1988.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Additional information

The research is partialy supported by NSERC operating grant OGPIN 007.

Rights and permissions

Reprints and permissions

About this article

Cite this article

Stojmenović, I. An optimal algorithm for generating equivalence relations on a linear array of processors. BIT 30, 424–436 (1990). https://doi.org/10.1007/BF01931658

Download citation

  • Received:

  • Revised:

  • Issue Date:

  • DOI: https://doi.org/10.1007/BF01931658

CR categories

Keywords and phrases

Navigation