Re: Median: Oasis and Fast Sorting Algorithm
- From: "Morten Welinder" <mwelinder gmail com>
- To: "Leonard Mada" <discoleo gmx net>
- Cc: dev sc openoffice org, gnumeric-list gnome org
- Subject: Re: Median: Oasis and Fast Sorting Algorithm
- Date: Fri, 9 Feb 2007 20:35:51 -0500
The finding on the k-largest element in an unordered sequence of n elements is
a linear-time and (if memory serves) constant-space problem in terms of n.
See Knuth for details.
The trouble with the algorithm is that it is rather complicated. More
code means
more chances of bugs. Unless you are Knuth, of course.
Add to that that there are several different "medians" out there -- I
think we have
no less than three in Gnumeric -- out there and sorting starts to look
appealing.
Morten
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]