Showing 1–1 of 1 results for author: Jahromi, N Z
-
On Smoothed Analysis of Quicksort and Hoare's Find
Authors:
Mahmoud Fouz,
Manfred Kufleitner,
Bodo Manthey,
Nima Zeini Jahromi
Abstract:
We provide a smoothed analysis of Hoare's find algorithm and we revisit the smoothed analysis of quicksort.
Hoare's find algorithm - often called quickselect - is an easy-to-implement algorithm for finding the k-th smallest element of a sequence. While the worst-case number of comparisons that Hoare's find needs is quadratic, the average-case number is linear. We analyze what happens between t…
▽ More
We provide a smoothed analysis of Hoare's find algorithm and we revisit the smoothed analysis of quicksort.
Hoare's find algorithm - often called quickselect - is an easy-to-implement algorithm for finding the k-th smallest element of a sequence. While the worst-case number of comparisons that Hoare's find needs is quadratic, the average-case number is linear. We analyze what happens between these two extremes by providing a smoothed analysis of the algorithm in terms of two different perturbation models: additive noise and partial permutations.
Moreover, we provide lower bounds for the smoothed number of comparisons of quicksort and Hoare's find for the median-of-three pivot rule, which usually yields faster algorithms than always selecting the first element: The pivot is the median of the first, middle, and last element of the sequence. We show that median-of-three does not yield a significant improvement over the classic rule: the lower bounds for the classic rule carry over to median-of-three.
△ Less
Submitted 25 April, 2009; v1 submitted 24 April, 2009;
originally announced April 2009.