This change to heapsort to make it a 'bottom-up' heapsort improves asymptotic performance from a ...
11 years, 10 months ago
(2013-01-24 08:06:25 UTC)
#1
This change to heapsort to make it a 'bottom-up' heapsort improves asymptotic
performance from a C of 2 to a C of 1.5. In all benches but the 'repeated' bench
this shows some slight and predictable improvement. In the 'random' bench the
improvement is ~5%. This heapsort is still takes 1.3x time of skqsort in the
'random' bench.
The change to the sort test was (and is) needed to verify that any sort changes
actually work. The change here is to compare sksort output against the output of
qsort, as it is assumed that the system qsort is correct (or at least defines
the system sorting).
Issue 7199050: Bottom-up heapsort and fix sort test.
(Closed)
Created 11 years, 10 months ago by bungeman
Modified 11 years, 10 months ago
Reviewers: reed1
Base URL: http://skia.googlecode.com/svn/trunk/
Comments: 0