Skip to main content
Log in

Speeding sort algorithms by special instructions

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

Abstract

This paper investigates some possibilities to speed up inner loops of certain sort algorithms by means of special instructions derived separately for each algorithm. Execution times were evaluated by a simple timing model in which the times taken by data references were strongly stressed. The results obtained by simulation experiments show that it is difficult to challenge the leading position of quicksort, although the relative time reductions in some less efficient algorithms are larger. We also discuss the question of the limits of any improvements by examining the microprogramming of the whole algorithms.

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. A. M. Abd-Alla and D. C. Karlgaard,Heuristic synthesis of microprogrammed computer architecture. IEEE Transactions on Computers C-23,8 (Aug. 1974), 802–807.

    Google Scholar 

  2. R. W. Cook and M. J. Flynn,System design of a dynamic microprocessor. IEEE Transactions on Computers C-19,3 (March 1970), 213–222.

    Google Scholar 

  3. P. A. Dearnley,Application level microcode to speed data base management. Computer Journal 22,3 (1979), 200–202.

    Google Scholar 

  4. H. Erkiö,On heapsort and its dependence on input data. Report A-1979-1, Department of Computer Science, University of Helsinki, Finland, 1979.

    Google Scholar 

  5. H. Erkiö and E. Peltola,Algorithms for experimental analysis of some internal sorting methods. Report A-1978-1, Department of Computer Science, University of Helsinki, Finland, 1978.

    Google Scholar 

  6. D. E. Knuth,The Art of Computer Programming. Vol. 1: Fundamental Algorithms. Addison-Wesley, 1969.

  7. D. E. Knuth,An empirical study of FORTRAN programs. Software — Practice and Experience 1,1 (1971), 105–133.

    Google Scholar 

  8. D. E. Knuth,The Art of Computer Programming. Vol. 3: Sorting and Searching (2nd printing). Addison-Wesley, 1975.

  9. P. S. Liu and F. J. Mowle,Techniques of program execution with a writable control memory. IEEE Transactions on Computers C-27,9 (Sep. 1978), 816–827.

    Google Scholar 

  10. R. Loeser,Some performance tests of “quicksort” and descendants. Comm. ACM 17,3 (March 1974), 143–152.

    Google Scholar 

  11. E. Peltola and H. Erkiö,Insertion merge sorting. Information Processing Letters 7,2 (Feb. 1978), 92–99.

    Google Scholar 

  12. J. G. Peters,The effects of paging on sorting algorithms. Report CS-74-14, University of Waterloo, Canada, 1974.

    Google Scholar 

  13. T. G. Rauscher and A. K. Agrawala,Dynamic problem-oriented redefinition of computer architecture via microprogramming. IEEE Transactions on Computers C-27,11 (Nov. 1978), 1006–1014.

    Google Scholar 

  14. D. C. Snyder,Computer performance improvement by measurement and microprogramming. Hewlett-Packard Journal (Feb. 1975), 17–24.

  15. A. B. Tucker and M. J. Flynn,Dynamic microprogramming: processor organization and programming. Comm. ACM 14,4 (April 1971), 240–250.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

About this article

Cite this article

Erkiö, H. Speeding sort algorithms by special instructions. BIT 21, 2–19 (1981). https://doi.org/10.1007/BF01934066

Download citation

  • Received:

  • Revised:

  • Issue Date:

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

Key Words and Phrases

CR Categories

Navigation