| ||
| 2002-01-06 | © 2001-2003 Harry M. Hardjono ramstrong@earthlink.net | |
|
Home Page |
The quicksort contest is a tremendous success! I have checked my logs and visitors come from all parts of the world. The entrants have impressed me with their creativity. All in all, I'm very happy with the way the contest has progressed, and it has only been one week.
Robert Sedgewick in his Algorithm book wrote:
While Shellsort is better than bubblesort or insertion sort for temporary sort, why not use quicksort directly if that proved to be easy? You can use a simple implementation of quicksort, then optimize it as needs arise. Sedgewick continued with:
Having seen optimized shellsort, I can definitely say that shellsort isn't that easy. Combsort, which is bubble sort with large bubble is much easier, and not much slower. In fact, you can say that shellsort is sort of heavy duty version of insertion sort, which in turn is optimized version of bubble sort.
Since quicksort discovery by C. A. R. Hoare in 1960, much has been analyzed of its performance. I'm disappointed that no one has yet to show how easy it is to do quicksort, until I came along. How simple can a quicksort be? Four lines.
|