[OT] Algorithm question

Jack Stouffer via Digitalmars-d digitalmars-d at puremagic.com
Sun Apr 30 22:03:17 PDT 2017


On Monday, 1 May 2017 at 04:15:35 UTC, H. S. Teoh wrote:
> 2) "Turtle walk":

I'd just like to point out that this algorithm doesn't satisfy

>such that elements that satisfy P(x) have equal probability of 
>being chosen

as the first element found in A will be chosen, and then each 
subsequent element has a decreasing probability of replacing the 
first element of P = 1/nSatisfy.


More information about the Digitalmars-d mailing list