University of Wollongong
Browse

Exploiting partial order with quicksort

Download (464.42 kB)
preprint
posted on 2024-11-16, 00:16 authored by R Geoff Dromey
The widely known Quicksort algorithm does not attempt to actively take advantage of partial order in sorting data. A relatively simple change can be made to the Quicksort strategy to give a bestcase performance of n. for ordered data. with a smooth transition to O(n log n) for the random data case. An attractive attribute of this new algorithm (Transort) Is that its performance for random data matches that for Sedgewlck's claimed best Implementation of Quicksort.

History

Article/chapter number

82-14

Total pages

13

Language

English

Usage metrics

    Exports

    RefWorks
    BibTeX
    Ref. manager
    Endnote
    DataCite
    NLM
    DC