News for hackers. Stuff that matters.
Re:Randomness extractors: making fair coins out of biased coins by LegionMammal978 on Sunday September 15, 2024 @03:04PM (#41549527)
In general, I think you could show that an 'arithmetic coding' approach is optimal, if the distribution of each bit given the previous bits is known. From there, you'd just have to show that the von Neumann approach for i.i.d. bits is no worse on average.
Re:Randomness extractors: making fair coins out of biased coins by Darmani on Sunday September 15, 2024 @06:37PM (#41551055)
This is correct, and I came to the comments to say the same thing. It takes some work to implement without arbitrary-precision floating point, but arithmetic coding can make use of the full entropy in the input stream, whereas the approach in the article discards a lot of information.
Re:Randomness extractors: making fair coins out of biased coins by bjornsing on Monday September 16, 2024 @03:27AM (#41553615)
I had this thought too. But can you be sure that there won’t be any statistical patterns / correlations in the output bitstream with that approach?