3-Points Average Pivot Quicksort
Journal: The Journal of the Institute of Internet, Broadcasting and Communication (Vol.14, No. 6)Publication Date: 2014-12-31
Authors : Sang-Un Lee;
Page : 295-301
Keywords : Quicksort; Pivot; Leftmost; Rightmost; Median; Random;
Abstract
In the absence of a sorting algorithm faster than O(nlogn), Quicksort remains the best and fastest of its kind in practice. For given n data, Quicksort records running in O(nlogn) at best and O(n^{2}) at its worst. In this paper, I propose an algorithm by which 3-points average is set as a pivot for first array L=a[s], last array H=a[e], and middle array M=a[?(s+e)/2?]in order to find the more fast than Quicksort. Test results prove that the proposed 3-points average pivot Quicksort has the time complexity of O(nlogn)at its best, average, and worst cases. And the proposed algorithm can be reduce the O(n^{2}) time of Quicksort to O(nlogn).
Other Latest Articles
- A Survey on User Interface Design of University Webzines
- Technical Report of Baltic Olympiad Informatics 2014
- Informatics Olympiads in Turkey: Team Selection and Training
- Selecting and Training Students with No Suitable Informatics Background for Informatics Olympiads ? The Case of Syrian Olympiad in Informatics
- Report of the IOI Workshop “Creating an international informatics curriculum for primary and high school education”
Last modified: 2016-01-19 10:44:49