Impossible Escape?
datagenetics.com
datagenetics.com
Given a standard deck of 52 cards, a third party chooses any five from the deck and hands them to your accomplice. Your accomplice chooses four of the five and gives them to you, with which you identify the fifth card. What's the strategy?
Solution (In Rot-13, http://rot13.com/index.php):
N fvzcyr beqrevat bs sbhe pneqf qbrfa'g jbex, fvapr 4! bayl nssbeqf lbh 24 pbzovangvbaf (cyhf gur sbhe lbh unir).
Jvgu svir pneqf naq bayl sbhe fhvgf, lbh xabj bar bs gur fhvgf zvtug or qhcyvpngrq. Lbh pna hfr gur svefg pneq gb fhccyl bayl fhvg vasbezngvba, ohg gur erznvavat guerr pneqf bayl nssbeq 6 pbzovangvbaf (cyhf 1-4 vs lbh unccra gb qenj pneqf zngpuvat gur gnetrg'f fhvg).
Gur frperg vf gb pubbfr juvpu bs gur gjb pneqf gb unaq bire. Jvgu 13 pneqf va rnpu fhvg, gur znkvzhz qvfgnapr orgjrra nal gjb pneqf (nyybjvat sbe jenc nebhaq) vf 6. Ol nterrvat gb nyjnlf unaq bire gur fznyyre/ynetre bs gur gjb pneqf va gur fnzr fhvg nf lbhe fhvg vqragvsvre, lbh pna hfr gur erznvavat guerr gb vaqvpngr gur qvfgnapr hc/qbja sebz gung pneq.
Sbe rknzcyr, tvira: 3,5 Pyhof, 8 Fcnqrf, 10 Qvnzbaqf, X Urnegf
Qhcyvpngr fhvg vf pyhof, fb jr'yy unaq bire gur fznyyre bs gur gjb (3 Pyhof). Gur qvfgnapr orgjrra 3 naq 5 vf 2, fb jr unaq bire gur gur erznvavat guerr va gur frpbaq ybjrfg beqrevat bs gur pneqf (v.r., 132: 8 Fcnqrf, X Urnegf, 10 Qvnzbaqf).
I use nycunorgvpny because it's easy to remember.
http://mathoverflow.net/questions/9754/magic-trick-based-on-...
Sbe rkrzcyr: 3,X Pyhof, 8 Fcnqrf, 10 Qvnzbaqf, X Urnegf
Fb V erzbir "3 Pyhof" naq qvssrerapr vf 3 (fb V beqre gur erznvavat pneqf va gur guveq beqrevat beqre 213) ohg +3 naq -3 obgu tvir n ybjre inyhr guna X (3 be 10).
Vs abg, guvf frrzf yvxr vg fubhyq or vzcbffvoyr: gurer ner (52 pubbfr 5) frgf gung gur guveq cnegl pna pubbfr, naq bayl (52 pubbfr 4) frgf gung lbh pna or tvira, fb ol gur cvtrbaubyr cevapvcyr, lbh pna'g znc rirel 4-frg gb n havdhr 5-frg. Ohg lbh pna znc na beqrerq 4-frg gb na habeqrerq 5-frg.
Ohg V serdhragyl svaq gung zl cebbsf bs vzcbffvovyvgl ba guvatf yvxr guvf ner jebat, fb...
Vs V cnff lbh n pneq snpr hc, gura gung vf 01, snpr qbja vf 00. Vs V cnff vg gb lbh jvgu zl evtug unaq, gung'f 10, yrsg unaq vf 00.
4^4, vf 256 ovgf bs qngn gb jbex jvgu.
You could for example encode book X by flipping one bit on some space, or a different book Y by flipping some other bit instead on another space on the exact same board, which is a fascinating thought to me.
So if I take this description on orders of magnitude from Wikipedia:
"5 000 000 bits – Typical English book volume in plain text format of 500 pages × 2000 characters per page and 5-bits per character."
This would mean that the board would need to have a size of 2^5000000 spaces to successfully do this for texts of up to 500 pages x 2000 chars per page.
http://board.flatassembler.net/topic.php?t=16574
It's not physically realizable: people in that particular comment thread point out problems about the size of an atom, but there's also the Planck length, which I believe people theorize is in some sense a minimum size for objects in our universe, and I calculated that there are only around 2¹¹⁶ of them in a meter, so you could only store 116 bits by making a single Planck length-sized mark on a meter stick. :-( :-(
But it's a super-cool idea!
Well I guess you could do it with longitude, latitude, and timestamp of birth, but I think it was supposed to be a personality survey.
However, he didn't propose a particular list of 33 questions whose answers are maximally statistically independent. Even with things that are totally uncorrelated, you do get some chance overlap where people happen to have the same answers on a small number of them.
For example, if we took the first 33 bits of the SHA256 of one's HN username, you and I happen to agree in positions 7, 8, 11, 13, 15, 17, 18, 19, 21, 26, 27, 28, 29, 31, and 32. (So we could say that each additional bit of that SHA256 value doesn't actually provide a full additional bit of distinguishing power relative to the previous ones.)
[UPDATE: this it wrong, but since three people have already responded explaining why I thought I would try to head off additional replies at the pass.]
Let's take a stab at the case with 3 squares/coins. When the second prisoner comes in she will say that the magic square is 1, 2, or 3 based only on the state of the 3 coins. There are 8 possible states for 3 coins, so whatever strategy is devised must partition the 8 end states into the 3 outcomes. Since 8 is not divisible by 3, that means 1 outcome will be assigned at most 2 states. Those 2 states can only by reached by 6 possible input states (since each input state can only reach 3 output states - one for each possible coin flip). That means there are 2 remaining possible input states that cannot reach the given outcome. So for any possible strategy the jailer can choose the output with only 2 states and one of the 2 input states that cannot reach it to foil the strategy.
There are 2^n possible end states to partition into n outcomes. So there must be at least 1 outcome given by at most 2^n/n end states. If n is not a power of 2, then 2^n is not divisible by n, so there must be one outcome with strictly fewer than 2^n/n states, call it m. However that outcome can only be reached mn input states. Since m < 2^n/n, we have that mn < 2^n. That means there are input states which cannot reach the given outcome. So for any possible strategy the jailer can choose the outcome with fewest possible end states, and then an input state that cannot reach that end state making it impossible for the second prisoner to reach that outcome.
There is no time limit for flipping the first coin, so if the guard choses the first square, I would wait 1 min before flipping mine. 60th square ? I would wait an hour.
If my friend outside is able to know precisely when I enter / exit from the room, he is able to know the correct square.
1) The regions are the blue areas, not the white areas 2) Even though the parity chart displays 2^0, 2^1 etc left to right, the parity number itself is the other direction like normal binary. So, the bottom half region is the left-most number.
Once you can do that, all you need is to be able to cleverly define your regions so that you can find a single square that overlaps with any given subset of them. Flipping the coin in that square would then change the direct sum for each of the overlapping regions, and you have your answer. You first read off the bits as they lay on the board you're given, then you figure out which bits you need to flip to turn that into the pattern you want, then you find the square that overlaps with all of those bits and flip that coin.
The way the regions are laid out in this case makes it possible to do just that - you can find a square that will overlap with any combination of the regions from none of them to all of them.
> Is it possible to communicate six bits of information by the flip of a single coin?
Considering the fact that you can choose among 2^6 coins.
https://ocfnash.wordpress.com/2009/10/31/yet-another-prisone...
https://ocfnash.wordpress.com/2009/10/31/yet-another-prisone...