CFP last date
22 April 2024
Reseach Article

Probabilistic Analysis of Perfect Partitioning in Randomized Quicksort

by Vivek Kumar, Mahesh Kumar Aghwariya
International Journal of Computer Applications
Foundation of Computer Science (FCS), NY, USA
Volume 174 - Number 9
Year of Publication: 2017
Authors: Vivek Kumar, Mahesh Kumar Aghwariya
10.5120/ijca2017915421

Vivek Kumar, Mahesh Kumar Aghwariya . Probabilistic Analysis of Perfect Partitioning in Randomized Quicksort. International Journal of Computer Applications. 174, 9 ( Sep 2017), 1-2. DOI=10.5120/ijca2017915421

@article{ 10.5120/ijca2017915421,
author = { Vivek Kumar, Mahesh Kumar Aghwariya },
title = { Probabilistic Analysis of Perfect Partitioning in Randomized Quicksort },
journal = { International Journal of Computer Applications },
issue_date = { Sep 2017 },
volume = { 174 },
number = { 9 },
month = { Sep },
year = { 2017 },
issn = { 0975-8887 },
pages = { 1-2 },
numpages = {9},
url = { https://ijcaonline.org/archives/volume174/number9/28432-2017915421/ },
doi = { 10.5120/ijca2017915421 },
publisher = {Foundation of Computer Science (FCS), NY, USA},
address = {New York, USA}
}
%0 Journal Article
%1 2024-02-07T00:21:39.110290+05:30
%A Vivek Kumar
%A Mahesh Kumar Aghwariya
%T Probabilistic Analysis of Perfect Partitioning in Randomized Quicksort
%J International Journal of Computer Applications
%@ 0975-8887
%V 174
%N 9
%P 1-2
%D 2017
%I Foundation of Computer Science (FCS), NY, USA
Abstract

The paper analyzes the probability of a scenario where Randomized-Quicksort performs a perfect partitioning of the input array. The RANDOMIZED PARTITION procedure, which is a subroutine of the Randomized-Quicksort, randomly picks an element of the given array as the pivot element, it then partitions the array around that element. A perfect partitioning occurs when every successive call to the RANDOMIZED-PARTITION procedure results in the picking of the median element as the pivot element, which partitions the array into two halves consisting of exact no. of elements. In this scenario, the algorithm yields an Θ (n lg n) runtime.

References
  1. Hoare, C.A., 1962. Quicksort. The Computer Journal, 5(1), pp.10-16.
  2. Coremen, L., Rivest, Stein Introduction to Algorithm. PHI publication.
Index Terms

Computer Science
Information Sciences

Keywords

Quicksort Randomized-Quicksort