[PATCH] Use a more efficient algorithm for list shuffling

Svante v. Erichsen Svante.v.Erichsen at web.de
Thu May 7 22:06:12 UTC 2015


Hi!

When I read “sort with random comparator”, I get a bad feeling.  I have not
examined the code deeply yet, but do you have some reference for an explanation
or perhaps even a proof that this is not biased?

Yours aye

Svante

On 2015-05-07 17:51:01+0200, salvador fandino wrote:
> It is quite similar to quicksort with a random comparator but ensuring
> than the list is always divided in two parts of (almost) equal size,
> and so avoiding the O(N*N) worst case of quicksort.

-- 
Svante von Erichsen

GPG fingerprint: A78A D4FB 762F A922 A495  57E8 2649 9081 6E61 20DE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <https://mailman.common-lisp.net/pipermail/alexandria-devel/attachments/20150508/0bfc7fd6/attachment.sig>


More information about the alexandria-devel mailing list