skip to main content
article
Free Access

An efficient and fast parallel-connected component algorithm

Authors Info & Claims
Published:01 July 1990Publication History
Skip Abstract Section

Abstract

A parallel algorithm for computing the connected components of undirected graphs is presented. Shared memory computation models are assumed. For a graph of e edges and n nodes, the time complexity of the algorithm is Ο(e/p + (n log n)/p + log2n) with p processors. The algorithm can be further refined to yield time complexity Ο(H(e, n, p)/p + (n log n)/(p log(n/p)) + log2n), where H(e, n, p) is very close to Ο(e). These results show that linear speedup can be obtained for up to pe/log2n processors when en log n. Linear speedup can still be achieved with up to pnε processors, 0 ≤ ε < 1, for graphs satisfying en log(*)n. Our results can be further improved if a more efficient integer sorting algorithm is available.

References

  1. 1 AHO, A. V., HOPCROFT, J. E., AND ULLMAN, J. D. The Design and Analysis of Computer Algorithms. Addison-Wesley, Reading, Mass., 1973, p. 133. Google ScholarGoogle Scholar
  2. 2 AJ'rgI, M., KOML0S, J., AND SZEMEREDI, E. An O(n log n) sorting network. In Proceedings of the 15th ACM Symposium on Theory of Computing (Boston, Mass., Apr. 25-27). ACM, New York, 1983, pp. 1-9. Google ScholarGoogle Scholar
  3. 3 AWERBUCH, B., AND SHILOACH, Y. New connectivity and MSF algorithms for ultracomputer and PRAM. In Proceedings of the 1983 International Conference on Parallel Processing (Aug.). IEEE, New York, 1983, pp. 175-179.Google ScholarGoogle Scholar
  4. 4 BORODIN, R. A., AND HOPCROFT, J. E. Routing, merging, and sorting on parallel models of computation. In Proceedings of the 14th ACM Symposium on Theory of Computing (San Francisco, Calif., May 5-7). ACM, New York, 1982, pp. 338-344. Google ScholarGoogle Scholar
  5. 5 CHIN, F. Y., LAM, J., AND CHEN, I.-N. Efficient parallel algorithms for some graph problems. Commun. ACM 25, 9 (Sept. 1982), 659-665. Google ScholarGoogle Scholar
  6. 6 HAN, Y. Designing fast and efficient parallel algorithms. Ph.D. dissertation, Dept. Computer Sci., Duke Univ., Durham, N.C., 1987. Google ScholarGoogle Scholar
  7. 7 HIRSCHBERG, D. S. Parallel algorithms for the transitive closure and the connected component problem. In Proceedings of the 8th ACM Symposium on Theory of Computing (Hershey, PP., May 3-5). ACM, New York, 1976, pp. 55-57. Google ScholarGoogle Scholar
  8. 8 HIRSCHBERG, D.S. Parallel graph algorithms without memory conflicts. In Proceedings of the 20th Allerton Conference. Univ. of Illinois, Urbana-Champaign, Ill., 1982, pp. 257-263.Google ScholarGoogle Scholar
  9. 9 HmSCHBFRG, D. S., CHANDRA, A. K., AND SARWATE, O.V. Computing connected components on parallel computers. Commun. ACM. 22, 8 (Aug. 1979), pp. 461-464. Google ScholarGoogle Scholar
  10. 10 KRUSKAL, C. P., RUDOLPH, L., AND SNIR, M. The power of parallel prefix. IEEE Tran. Comput. C-34, l0 (Oct. 1985), 965-968.Google ScholarGoogle Scholar
  11. 11 KRUSKAL, C. P., RUDOLPH, L. AND SNIR, M. Efficient parallel algorithms for graph problems. In Proceedings of the 1986 International Conference on Parallel Processing (Aug.). IEEE, New York, 1986, pp. 278-284.Google ScholarGoogle Scholar
  12. 12 KU(~ERA, L. Parallel computation and conflicts in memory access. Inf. Process. Lett. 14, 2 (20 Apr. 1982), 93-96.Google ScholarGoogle Scholar
  13. 13 KWAN, S. C. AND RUZZO, W. L. Adaptive parallel algorithms for finding minimum spanning trees. In Proceedings of the 1984 International Conference on Parallel Processing (Aug.). IEEE, New York, 1984, pp. 439-443.Google ScholarGoogle Scholar
  14. 14 LEV, G. F., PIPPENGER, N., AND VALIANT, L. G. A fast parallel algorithm for routing in permutation networks. IEEE Trans. Comput. C-30 (Feb. 1981), 93-100.Google ScholarGoogle Scholar
  15. 15 NATH, D., AND MAHESHWARI, S. N. Parallel algorithms for the connected components and minimal spanning tree problems. Inf. Proc. Lett. 14, 1 (27 Mar. 1982), 7-11.Google ScholarGoogle Scholar
  16. 16 QUINN, M., AND DEO, N. Parallel graph algorithms. ACM Comput. Surv. 16, 3 (Sept. 1984), 319-348. Google ScholarGoogle Scholar
  17. 17 REGHBATI(ARJOMANIDI), E., AND CORNEIL, D.G. Parallel computations in graph theory. SIAM J. Comput. 2, 2 (May 1978), 230-237.Google ScholarGoogle Scholar
  18. 18 REIF, J.H. Symmetric complementation. In Proceedings of the 14th ACM Symposium on Theory of Computing (San Francisco, Calif., May 5-7). ACM, New York, 1982, pp. 201-214. Google ScholarGoogle Scholar
  19. 19 SAVAGE, C., AND JA'JA, J. Fast, efficient parallel algorithms for some graph problems. SlAM J. Comput. 10, 4 (Nov. 1981), 682-690.Google ScholarGoogle Scholar
  20. 20 SCHWARTZ, J.Z. Ultracomputers. ACM Trans. Prog. Lang. Syst. (Oct. 1~80), pp. 484-521. Google ScholarGoogle Scholar
  21. 21 SHILOACH, Y., AND VISHKIN, U. An O(log n) parallel connectivity algorithm. J. Algor. 3, l (Mar. 1982), 57-67.Google ScholarGoogle Scholar
  22. 22 SNIR, M. On parallel searching. SIAM J. Comput. 14, 3 (Aug. 1985), 688-708.Google ScholarGoogle Scholar
  23. 23 WAGNER, R., AND HAN, Y. Parallel algorithms for bucket sorting and the data dependent prefix problem. In Proceedings of the 1986 International Conference on Parallel Processing (Aug.). IEEE, New York, 1986, pp. 924-930.Google ScholarGoogle Scholar

Index Terms

  1. An efficient and fast parallel-connected component algorithm

      Recommendations

      Comments

      Login options

      Check if you have access through your login credentials or your institution to get full access on this article.

      Sign in

      Full Access

      • Published in

        cover image Journal of the ACM
        Journal of the ACM  Volume 37, Issue 3
        July 1990
        247 pages
        ISSN:0004-5411
        EISSN:1557-735X
        DOI:10.1145/79147
        Issue’s Table of Contents

        Copyright © 1990 ACM

        Publisher

        Association for Computing Machinery

        New York, NY, United States

        Publication History

        • Published: 1 July 1990
        Published in jacm Volume 37, Issue 3

        Permissions

        Request permissions about this article.

        Request Permissions

        Check for updates

        Qualifiers

        • article

      PDF Format

      View or Download as a PDF file.

      PDF

      eReader

      View online with eReader.

      eReader