[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/sci/ - Science & Math


View post   

File: 182 KB, 2000x1600, 1420145847444.gif [View same] [iqdb] [saucenao] [google]
7722471 No.7722471 [Reply] [Original]

I asked this on /g/ but they were too busy weeding out redditors and trying to average 2 integers.

Drawing 7 playing cards from a deck of 52 is 7^52 possibilities, assuming you can draw the same card twice.
If you wanted to map a binary string to each of these possibilities, you'd need ceil(lg_2(7^52)), or ceil(39.9) = 40 bits.
But I think I can store a hand of 7 in 33 bits with >>>/g/51880088
What is wrong with my scheme?

>> No.7723030

>>7722471
52^7, not 7^52

>> No.7723071
File: 85 KB, 190x265, Ahmadissapoint.png [View same] [iqdb] [saucenao] [google]
7723071

>>7722471
That gif gave me epilepsy

>> No.7723080

>>7722471
yeah but you could say it takes 10 bytes to store an egg, then 1 byte to say how many i'm storing
you can't store 255 eggs in 11 bytes, you can store the same egg 255 times.