skip to main content
article
Free Access

Periodification scheme: constructing sorting networks with constant period

Published:01 September 2000Publication History
Skip Abstract Section

Abstract

We consider comparator networks M that are used repeatedly: while the output produced by M is not sorted, it is fed again into M. Sorting algorithms working in this way are called periodic. The number of parallel steps performed during a single run of M is called its period, the sorting time of M is the total number of parallel steps that are necessary to sort in the worst case. Periodic sorting networks have the advantage that they need little hardware (control logic, wiring, area) and that they are adaptive. We are interested in comparator networks of a constant period, due to their potential applications in hardware design.

Previously, very little was known on such networks. The fastest solutions required time O(nε) where the depth was roughly 1/ε. We introduce a general method called periodification scheme that converts automatically an arbitrary sorting network that sorts n items in time T(n) and that has layout area A(n) into a sorting network that has period 5, sorts ***(nT(n) items in time O(T(<n)• log n), and has layout area O(A(n)) • T(n)). In particular, applying this scheme to Batcher's algorithms, we get practical period 5 comparator networks that sort in time O(log3n). For theoretical interest, one may use the AKS netork resulting in a period 5 comparator network with runtime O(log2n).

References

  1. AJTAI, M., KOMLO ~S, J., AND SZEMERE ~DI, E. 1983. Sorting in c z log n parallel steps. Combinatorica 3, 1-19.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. BATCHER, K. E. 1968. Sorting networks and their applications. In AFIPS Conference Proceedings, vol. 32. AFIPS Press, Atlantic City, N.J., pp. 307-314.]]Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. DE BRUIJN, N. G. 1974. Sorting by means of swapping. Disc. Math. 9, 333-339.]]Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. DOWD, M., PERL, Y., SAKS, M., AND RUDOLPH, L. 1989. The periodic balanced sorting network. J. ACM 36, 738-757.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. IERARDI, D. 1994. 2d-Bubblesorting in average time O(=NlgN). In Proceedings of the 6th ACM Symposium on Parallel Algorithms and Architectures (SPAA) ACM, New York, pp. 36-45.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. KIK, M., KUTYLOWSKI, M., AND STACHOWIAK, G. 1994. Periodic constant depth sorting networks. In Proceedings of the 11th Symposium on Theoretical Aspects of Computer Science (STACS). Lecture Notes in Computer Science, vol. 775. Springer-Verlag, Berlin, Germany, pp. 201-212.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. KNUTH, D. E. 1998. The Art of Computer Programming. Vol. 3. Sorting and Searching. Addison-Wesley, Reading, Mass.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. KRAMMER, J. 1991. Lo~sung von Datentransportproblemen in integrierten Schaltungen. Dissertation, TU Mu~nchen. Munich, Germany.]]Google ScholarGoogle Scholar
  9. KUTYLOWSKI, M., LORYS ~, K., AND OESTERDIEKHOFF, B. 1998. Periodic merging networks. Theory Comput. Syst. 31, 5, 551-578.]]Google ScholarGoogle ScholarCross RefCross Ref
  10. LEIGHTON, T. 1985. Tight bounds on the complexity of parallel sorting. IEEE Trans. Comput. 34, 344-354.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. LORYS ~, K., KUTYLOWSKI, M., OESTERDIEKHOFF, B., AND WANKA, R. 1994. Fast and feasible periodic sorting networks of constant depth. In Proceedings of the 35th IEEE Symposium on Foundations of Computer Science (FOCS). IEEE Computer Society Press, Los Alamitos, Calif., pp. 369-380.]]Google ScholarGoogle Scholar
  12. OESTERDIEKHOFF, B. 1997. On periodic comparator networks. Dissertation, University of Pader-born, Paderborn, Germany.]]Google ScholarGoogle Scholar
  13. SADO, K., AND IGARASHI, Y. 1986. Some parallel sorts on a mesh-connected processor array and their time efficiency. J. Parall. Distrib. Comput. 3, 398-410.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  14. SAVARI, S. A. 1993. Average case analysis of five two-dimensional bubble sorting algorithms. In Proceedings of the 5th ACM Symposium on Parallel Algorithms and Architectures (SPAA). ACM, New York, pp. 336-345.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  15. SCHERSON, I. D., SEN, S., AND SHAMIR, A. 1986. Shear-sort: A true two-dimensional sorting technique for VLSI networks. In Proceedings of the IEEE International Conference on Parallel Processing. IEEE Computer Society Press, Los Alamitos, Calif., pp. 903-908.]]Google ScholarGoogle Scholar
  16. SCHRO ~DER, H. 1983. Partition sorts for VLSI. In Proceedings of the 13th GI-Jahrestagung. vol. 73 of Informatikfachberichte. Springer-Verlag, New York, pp. 101-116.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  17. SCHWIEGELSHOHN, U. 1988. A short periodic two-dimensional systolic sorting algorithm. In International Conference on Systolic Arrays (San Diego, Calif., May 25-27). K. Bromley, S.-Y. Kung, E. Swartzlander, eds. Computer Science Press, Baltimore, Md., pp. 257-264.]]Google ScholarGoogle Scholar
  18. STACHOWIAK, G. 2000. Fibonacci correction networks algorithm theory. In SWAT 2000, M. M. Halldo~rsson, ed. Lecture Notes in Computer Science, vol. 1851. Springer-Verlag, Berlin, Germany, pp. 535-548.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  19. THOMPSON, C. D. 1983. The VLSI complexity of sorting. IEEE Trans. Comput. C-32, 12, 1171-1184.]]Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. Periodification scheme: constructing sorting networks with constant period

      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 47, Issue 5
        Sept. 2000
        145 pages
        ISSN:0004-5411
        EISSN:1557-735X
        DOI:10.1145/355483
        Issue’s Table of Contents

        Copyright © 2000 ACM

        Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

        Publisher

        Association for Computing Machinery

        New York, NY, United States

        Publication History

        • Published: 1 September 2000
        Published in jacm Volume 47, Issue 5

        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