A Heapify Based Parallel Sorting Algorithm
M. A.A.A. Hija, A. Zabian, S. Qawasmeh & O. H.A.A. Haija
Journal of Computer Science, Volume 4, Issue 11, pp. 897–902 · doi.org/10.3844/jcssp.2008.897.902
Abstract
Quick sort is a sorting algorithm whose worst case running time is θ(n2) on an input array of n numbers. It is the best practical for sorting because it has the advantage of sorting in place. Problem statement: Behavior of quick sort is complex, we proposed in-place 2m threads parallel heap sort algorithm which had advantage in sorting in place and had better performance than classical sequential quick sort in running time. Approach: The algorithm consisted of several stages, in first stage; it splits input data into two partitions, next stages it did the same partitioning for prior stage which had been spitted until 2 m partitions was reached equal to the number of available processors, finally it used heap sort to sort respectively ordered of non internally sorted partitions in parallel. Results: Results showed the speed of algorithm about double speed of classical Quick sort for a large input size. The number of comparisons needed was reduced significantly. Conclusion: In this study we had been proposed a sorting algorithm that uses less number of comparisons with respect to original quick sort that in turn requires less running time to sort the same input data.
Licence and reuse
Free to read. This article carries the publisher’s copyright, as printed on it: © 2008 Science Publications. It is free to read; ask us before reusing it.
How to reuse this articleResponses (0)
About this article
Hija, M. A., Zabian, A., Qawasmeh, S. & Haija, O. H. (2008). A Heapify Based Parallel Sorting Algorithm. Journal of Computer Science, 4(11), 897–902. https://doi.org/10.3844/jcssp.2008.897.902
- Licence
- © Science Publications
- Issue
- Volume 4, Issue 11
- Policies
- Editorial independenceUse of generative AIData availabilityAppeals and complaints
- Version
- Version of record
