Skip to main content

Part of the book series: Advances in Intelligent Systems and Computing ((AISC,volume 327))

Abstract

In the field of computer science and mathematics, Sorting is arranging elements in a certain order, there are many sorting techniques are existing such as Bubble sort, Heap sort, Merge sort, Insertion sort etc. In this paper we are concentrating on heap sort, heap sort works by first organizing the data to be sorted into a special type of binary tree called a heap. The heap itself has, by definition the largest value or the smallest value at the top of the tree based on max heap or min heap. Heap sort method sorts a single element at a time. In the existing heap sort method for every construction of heap only a single root element will be sorted, so it slowdowns the performance of heap sort technique. In order to optimize the performance of heap sort we are proposing the optimized heap sort technique (OHS) by using Two-swap method. The Two-swap method sorts two-elements at a time for each heap construction, and it reduces 30-50% of the time complexity of heap sort in the construction of heap as well as in sorting of array elements.

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

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 169.00
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 219.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Cormen, T.H., Leiserson, C.E., Rivest, R.L., Stein, C.: Introduction to Algorithms, 2nd edn., ch. 7. MIT Press, Cambridge (2001)

    Google Scholar 

  2. Knuth, D.E.: The Art of Computer Programming. Sorting and Searching, vol. 3. Addison Wesley, Reading (1998)

    Google Scholar 

  3. Floyd, R.W.: Algorithm 245: Treesort 3. Communications of ACM 7(4), 701 (1964)

    Article  MathSciNet  Google Scholar 

  4. Cormen, et al.: Introduction to Algorithms, Chap. 6

    Google Scholar 

  5. Hoare, C.A.R.: Quicksort. Computer Journal 5(1), 10–15

    Google Scholar 

  6. Williams, J.W.J.: Algorithm 232: HEAPSORT. Communications of ACM 7(4), 347–348 (1964)

    Google Scholar 

  7. Wegner, I.: The Worst Case Complexity of McDiarmid and Reed’s Variant of BOTTOM-UP HEAP SORT. Information and Computation 97(1), 86–96 (1992)

    Article  MathSciNet  Google Scholar 

  8. Carlsson, S.: A variant of HEAPSORT with almost optimal number of comparisons. Information Processing Letters 24, 247–250 (1987)

    Article  MathSciNet  MATH  Google Scholar 

  9. Gonnet, G.H., Munro, J.I.: Heaps on Heaps. SIAM Journal on Computing 15(6), 964–971 (1986)

    Article  MathSciNet  MATH  Google Scholar 

  10. McDiarmid, C.J.H., Reed, B.A.: Building Heaps Fast. Journal of Algorithms 10(3), 352–365 (1989)

    Article  MathSciNet  MATH  Google Scholar 

  11. Dutton, R.D.: Weak Heap Sort. BIT 33(3), 372–381 (1993)

    Article  MathSciNet  Google Scholar 

  12. Carlsson, S., Chen, J.: The Complexity of Heaps. In: The Third Annual ACM SIAM Symposium on Discrete Algorithms, pp. 393–402. SIAM, Philadelphia (1992)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to S. Sumathi .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2015 Springer International Publishing Switzerland

About this paper

Cite this paper

Sumathi, S., Prasad, A.M., Suma, V. (2015). Optimized Heap Sort Technique (OHS) to Enhance the Performance of the Heap Sort by Using Two-Swap Method. In: Satapathy, S., Biswal, B., Udgata, S., Mandal, J. (eds) Proceedings of the 3rd International Conference on Frontiers of Intelligent Computing: Theory and Applications (FICTA) 2014. Advances in Intelligent Systems and Computing, vol 327. Springer, Cham. https://doi.org/10.1007/978-3-319-11933-5_78

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-11933-5_78

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-11932-8

  • Online ISBN: 978-3-319-11933-5

  • eBook Packages: EngineeringEngineering (R0)

Publish with us

Policies and ethics