in reply to Re^3: Randomize word in thread Randomize word
Not C's qsort, nor by default a quicksort at all anymore. Note that on older perls (5.005ish?) that do use qsort, some platforms have a tendency to coredump if the sort routine provides inconsistent results. (Just heresay, never actually seen it myself.)
Re^5: Randomize word
by zdog (Priest) on Sep 12, 2004 at 10:57 UTC
|
Here it says:
We have changed sort to use mergesort, which for me is rather surprising since I have been told since I was a toddler to use quicksort. However, the old behavior can be controlled using the sort module; we even have a mystery stable quicksort!
So the switch from quicksort to merge sort apparently happened with 5.8.0. Gee .. I'm out of date. Thanks for pointing that out as well.
Zenon Zabinski | zdog | zdog@perlmonk.org
| [reply] [Watch: Dir/Any] |
|