Worst-case performance of quickSort / getPivot

bearophile bearophileHUGS at lycos.com
Sun Nov 17 19:10:21 PST 2013


Chris Cain:

> Also, to do this (in reasonable time) I had to create a new 
> range which I called "FastDice" ... it does the same as 
> std.random.dice, but is intended for cases where you'll be 
> throwing dice throws often on the same data, so it does a bit 
> of precomputation (creating a cumulative sum array)

See also:
http://d.puremagic.com/issues/show_bug.cgi?id=5849

Bye,
bearophile


More information about the Digitalmars-d mailing list