correction to uniformly random selection algorithms
Travis H.
solinym at gmail.com
Sat Sep 2 23:29:39 EDT 2006
I just realized I made a small error in algorithm 2.
On 9/2/06, Travis H. <solinym at gmail.com> wrote:
> 2. This algorithm seems to waste fewer bits:
>
> Initialize with c = 0.
> x = extraction of n bits
That should read:
x = extraction of ceil(lg(p-c)) bits
Otherwise there's nothing gained by
carrying the remainder c.
--
"If you're not part of the solution, you're part of the precipitate."
Unix "guru" for rent or hire -><- http://www.lightconsulting.com/~travis/
GPG fingerprint: 9D3F 395A DAC5 5CCC 9066 151D 0A6B 4098 0C55 1484
---------------------------------------------------------------------
The Cryptography Mailing List
Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com
More information about the cryptography
mailing list