The problem with the D GC [OT: Quicksort]

Miles _______ at _______.____
Tue Jan 9 07:45:04 PST 2007


Frits van Bommel wrote:
> Of course, if you're only concerned about malicious users sending
> worst-case data (and not about worst-case data appearing randomly)
> there's an easy fix: randomize the data in O(n) :).

Yeah, sure. You can also just pick a random element per iteration
(instead of the first one or the middle one).



More information about the Digitalmars-d mailing list