A New Approach for Selecting Pivot Element in Quick Sort to Reduce Execution Time

K Jhansi, Sumayya Afreen

Abstract


The Pivot element is the element which is selected first in the array in the quick sort, and based on which array is partitioned. Any element can be selected as pivot element but first or last element of the array is usually selected as Pivot element. In this paper, an approach to select pivot element is discussed with examples which reduces the execution time. This approach can be applied to almost sorted arrays.


Full Text:

PDF




Copyright (c) 2018 Edupedia Publications Pvt Ltd

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

 

All published Articles are Open Access at  https://journals.pen2print.org/index.php/ijr/ 


Paper submission: ijr@pen2print.org