by steventhedev · 9y ago · 0 comments
This uses only 6 bits of information, and you should be able to pack some extra info rather easily into the remaining 7.
Thinking about alternative approaches leads me to think that the only cases that you should focus on to solve this are those where the number of true/false is almost equal. Figure out how to pack them together, layer a few solutions together, and you should be able to answer the exam to within some N guaranteed.
EDIT: 12 correct answers. not 13. And you can easily pack this into 1 bit. Leaving my wrong answer for posterity.
That can be reduced to a single bit:
If you should mark 'true' on all the answers, he leaves during the first half of the exam; if you should mark 'false' on all the answers, he leaves during the second part of the exam. This gets you at least 12 correct answers in 1 bit.
This leaves you with 11 bits to modify the pattern with to improve your score.
000,001,010,100,000 -> buddy signals 0, I write 000
111,110,101,011,111 -> buddy signals 1, I write 111
with 7 bit you definitely win 14 questions from 21
I've been trying to think if there's a clever scheme to spread the knowledge around to beat 17 with statistical tricks.
(As a fun aside: 17/23 is about 73%, which typically gets you a C -- so you'd pass the exam.)
You can probably get better bit usage by doing some sort of more complex error code correction scheme--imagine having overlapping groups that you know majority vote on. It's been a decade since I've touched that stuff, so I don't know any concrete numbers here.
17 answer and one bit remained