DN>> Note that bubble sort is offered by Knuth, and several others, as by
DN>> far the worst sorting algorithm around. The next step up is insertion
DN>> sort, which typically runs twice as fast. The "great all-rounder" is
DN>> Shell's algorithm. The "formula 1 racer" is Hoare's algorithm
DN>> (usually very fast, but is prone to breaking down). The "status
DN>> symbol" of sorting is Batcher's algorithm.
JdBP> Whenever I need to code a sort of my own (as opposed to just using
JdBP> qsort()) I
JdBP> use Comb Sort. It's reasonably fast, and it is uncomplicated and
small
JdBP> enough that it is easy to remember.
what is the comb sort? and Batcher's algorithm? (in short... just the
algorithms in pseudocode, details are ok but not necessary)
matju
--- Terminate 4.00/Pro
---------------
* Origin: The Lost Remains Of SatelliteSoft BBS (1:163/215.42)
|