No, the program simply does the 50/50 chance for each ODP sequentially. No rounding errors or precision limits apply.
Announcement
Collapse
No announcement yet.
Zeno's Paradox and Flechette Defense
Collapse
X
-
Heh... Straybow's post made me think about one problem with the method of checking if a random pick from a discrete uniform distribution [0,RAND_MAX] (which should be what rand() returns) is smaller than RAND_MAX divided by two rounded down. If RAND_MAX is odd, this causes a slight bias. Well, my guess is that on most systems RAND_MAX is either one and a bunch of zeroes, or just a bunch of ones. In the former case, RAND_MAX is even, in the latter case it's odd.
That's not the interesting (or well thought-out) part. It just made me think further about bits:
For the actual bits returned by rand(), if we trust the function to be random enough, it should be true for each bit that there's a 50% chance it's 1 and a 50% chance it's 0. Thus, assuming we're using 32-bit integers, we can check if a PB gets through an ODP shield by rolling a random number, shifting it (either direction works) by 32-[number of ODPs] places with zero as the extension bit, and checking if the result is true. If there are more than 32 ODPs, just do the rolls and checks for truth but no shifts [number of ODPs]/32 times (rounded down, of course) first.
It's a very pointless bit-banging optimisation, but at least it doesn't waste as much entropy as the method of rolling a new 32-bit random number for each boolean check does .This is Shireroth, and Giant Squid will brutally murder me if I ever remove this link from my signature | In the end it won't be love that saves us, it will be mathematics | So many people have this concept of God the Avenger. I see God as the ultimate sense of humor -- SlowwHand
Comment
-
Finally, something a lowly programmer can understand! By the way, you point is quite significant. For the infinite cases being posted, even a slight bias is going to screw it all up. The not-quite-random number generator issue actually helped drive processor development, was in the P3, AMD Thunderbird, or the P4 that started using a random electric noice generator to create random numbers? It's highly significant in cryptography, and can make practically unbreakable encryption solvable by a large enough parallel processor machine, due to the slightly predicable nature of the not-quite-random generation of encoding digits.The worst form of insubordination is being right - Keith D., marine veteran. A dictator will starve to the last civilian - self-quoted
And on the eigth day, God realized it was Monday, and created caffeine. And behold, it was very good. - self-quoted
Klaatu: I'm impatient with stupidity. My people have learned to live without it.
Mr. Harley: I'm afraid my people haven't. I'm very sorry… I wish it were otherwise.
Comment
-
*thirst for quantum computers ever increases*
I want them! Now!
Arise ye starvelings from your slumbers; arise ye prisoners of want
The reason for revolt now thunders; and at last ends the age of "can't"
Away with all your superstitions -servile masses, arise, arise!
We'll change forthwith the old conditions And spurn the dust to win the prize
Comment
-
Well, they've got to be more useful than these optical computers. they don't seem to do anything.
Originally posted by Natalinasmpf
SMAC isn't a narcotic, its a miracle, beneficial, eye-opening drug.
Yeah, I've been on that side of the intervention.
GFC"The first rule of Girlfight Club: No one gossips about Girlfight Club. That means you, Sheryl."
-----------------------------
Girlfight_club of Toliman has authorized a secret project, "The Planetary Datalinks": http://planetarydatalinks.hub.io
Comment
-
Do you think that a quantum computer would be able to break any standard encryption technique employed by our computers today? At the same time, would it be able to use encryption methods that are unbreakable even by a quantum computer?It's really Synthetic God... I guess I didn't notice my own typo.
Comment
-
Do you think that a quantum computer would be able to break any standard encryption technique employed by our computers today?
Most probably.
would it be able to use encryption methods that are unbreakable even by a quantum computer?
Probably not for this one.
Anyway, what is the concluding result of this thread? I now assume after all the formulas, its possible, to have so many ODP's, that eventually PB success will be reduced to zero?Arise ye starvelings from your slumbers; arise ye prisoners of want
The reason for revolt now thunders; and at last ends the age of "can't"
Away with all your superstitions -servile masses, arise, arise!
We'll change forthwith the old conditions And spurn the dust to win the prize
Comment
-
Originally posted by Natalinasmpf
Anyway, what is the concluding result of this thread? I now assume after all the formulas, its possible, to have so many ODP's, that eventually PB success will be reduced to zero?
Comment
-
It's also a convenient background for esoteric mathematical debates!
And programming!Arise ye starvelings from your slumbers; arise ye prisoners of want
The reason for revolt now thunders; and at last ends the age of "can't"
Away with all your superstitions -servile masses, arise, arise!
We'll change forthwith the old conditions And spurn the dust to win the prize
Comment
Comment