An Experimental Analysis on Different Pivot Selection Approaches for the Quicksort Algorithm

The research primarily examines the significance of pivot selection of the widely used QuickSort algorithm in order to increase the overall performance and efficiency. Quicksort has an average time complexity of $O(n \log n)$, but its performance can degrade to $O\left(n^{2}\right)$ in the worst-case scenario, which occurs when a pivot element is chosen badly. This study focuses on the influence of different pivot selection techniques on the efficiency of the Quicksort algorithm through empirical evaluation. To determine which strategy works best for an individual data set and array size, different methods have been evaluated, aiming to choose a pivot that is in close proximity to the median of the subarray, evaluating their efficiency and any drawbacks. In terms of efficiency, the Median of Seven (MO7) and Median of Three (MO3) exhibits the best results, where MO7 gives an execution time of 0.0112 s and MOT of 0.0124 s. A comparative decision criteria has also been proposed in this research in choosing the optimum approach among the best performing MOT and MO7, where MOT being simpler and MO7 being more efficient. These insights offer practical guidance for optimizing Quick Sort implementations in real-world scenarios, where its performance is paramount.

Authors

Institutions

Publication Details

Published
2024-10-26
DOI
https://doi.org/10.1109/iciset62123.2024.10939753
Primary Topic
Metaheuristic Optimization Algorithms Research
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

An Experimental Analysis on Different Pivot Selection Approaches for the Quicksort Algorithm

Md. Manzurul Hasan, Dipta Gomes, Jeba Tahsin
Metaheuristic Optimization Algorithms Research
article

An Experimental Analysis on Different Pivot Selection Approaches for the Quicksort Algorithm

Md. Manzurul Hasan, Dipta Gomes, Jeba Tahsin
article en

Abstract

The research primarily examines the significance of pivot selection of the widely used QuickSort algorithm in order to increase the overall performance and efficiency. Quicksort has an average time complexity of $O(n \log n)$, but its performance can degrade to $O\left(n^{2}\right)$ in the worst-case scenario, which occurs when a pivot element is chosen badly. This study focuses on the influence of different pivot selection techniques on the efficiency of the Quicksort algorithm through empirical evaluation. To determine which strategy works best for an individual data set and array size, different methods have been evaluated, aiming to choose a pivot that is in close proximity to the median of the subarray, evaluating their efficiency and any drawbacks. In terms of efficiency, the Median of Seven (MO7) and Median of Three (MO3) exhibits the best results, where MO7 gives an execution time of 0.0112 s and MOT of 0.0124 s. A comparative decision criteria has also been proposed in this research in choosing the optimum approach among the best performing MOT and MO7, where MOT being simpler and MO7 being more efficient. These insights offer practical guidance for optimizing Quick Sort implementations in real-world scenarios, where its performance is paramount.

American International University-Bangladesh (BD)
Openalex Percentile: Top 74%
Metaheuristic Optimization Algorithms Research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.