ResearchBib Share Your Research, Maximize Your Social Impacts
Sign for Notice Everyday Sign up >> Login

3-Points Average Pivot Quicksort

Journal: The Journal of the Institute of Internet, Broadcasting and Communication (Vol.14, No. 6)

Publication Date:

Authors : ;

Page : 295-301

Keywords : Quicksort; Pivot; Leftmost; Rightmost; Median; Random;

Source : Downloadexternal Find it from : Google Scholarexternal

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).

Last modified: 2016-01-19 10:44:49