|
|
|
|
|
by btilly
4358 days ago
|
|
You can trivially achieve bounded worst case performance with minimal overhead by doing median of medians only, say, one time in 5. In the average case you do the expensive median of medians on a small fraction of the data and so only pay a few percent average penalty. And in the worst case you still get n log(n) performance. |
|