mersenneforum.org  

Go Back   mersenneforum.org > Fun Stuff > Puzzles

Reply
 
Thread Tools
Old 2013-10-30, 11:47   #23
axn
 
axn's Avatar
 
Jun 2003

117378 Posts
Default

Quote:
Originally Posted by Flatlander View Post
but just before Bob needs the PIN Alice and Bob are struck down with Stupiditis and are only able to comprehend integers 0 through 9, ...


Quote:
Originally Posted by Flatlander View Post
but they understand the terms prime, composite and co-prime
I am guessing the onset of stupiditis still leaves these intact?
axn is offline   Reply With Quote
Old 2013-10-30, 11:59   #24
retina
Undefined
 
retina's Avatar
 
"The unspeakable one"
Jun 2006
My evil lair

22×32×173 Posts
Default

Quote:
Originally Posted by retina View Post
I know how that feels. I get struck be that very frequently. As for solving this new modified puzzle I feel an attack of Stupiditis coming on now. :(
One of my minions suggested this procedure:

Bob says integers at random and Alice says "yes" when Bob say the correct integer. Bob must say the integers in random order to eliminate a timing attack from Eve. In the worst case Bob must say forty numbers (all integers four times over) which could be done in the 30 second limit. In the average case it would take 20 numbers. And in the best case only four numbers.
retina is online now   Reply With Quote
Old 2013-10-30, 13:43   #25
wblipp
 
wblipp's Avatar
 
"William"
May 2003
New Haven

2·7·132 Posts
Default

Quote:
Originally Posted by retina View Post
Bob says integers at random and Alice says "yes" when Bob say the correct integer.
Revertive Pulsing! Panel telephone switching systems used this method to signal the called number from one telephone office to the next. Panel was Bell System's biggest Central Office Switching System in the 1930's, surviving in the field until the 1970's. (Not to random part - but there was no need secrecy)
wblipp is offline   Reply With Quote
Old 2013-10-30, 16:01   #26
retina
Undefined
 
retina's Avatar
 
"The unspeakable one"
Jun 2006
My evil lair

22·32·173 Posts
Default

Quote:
Originally Posted by retina View Post
In the average case it would take 20 numbers.
Make that 22 numbers.

I was about to give him a gold star but that little error means no star for him. And my sharks are looking a bit hungry so perhaps ...
retina is online now   Reply With Quote
Old 2013-10-30, 16:32   #27
Mini-Geek
Account Deleted
 
Mini-Geek's Avatar
 
"Tim Sorbera"
Aug 2006
San Antonio, TX USA

426710 Posts
Default

Quote:
Originally Posted by retina View Post
One of my minions suggested this procedure:

Bob says integers at random and Alice says "yes" when Bob say the correct integer. Bob must say the integers in random order to eliminate a timing attack from Eve. In the worst case Bob must say forty numbers (all integers four times over) which could be done in the 30 second limit. In the average case it would take 20 numbers. And in the best case only four numbers.
Quote:
Originally Posted by retina View Post
Make that 22 numbers.

I was about to give him a gold star but that little error means no star for him. And my sharks are looking a bit hungry so perhaps ...
Actually, observe that if Alice answers "no" for the first 8 numbers, there are two numbers remaining. When Alice answers "yes" or "no" for the next guess, Bob knows the answer with certainty without needing to ask any more questions. Thus, the maximum number of numbers that must be said is 36, and the average is 21.6. (this follows from the fact that the probability of Bob needing to ask 1-8 times is 10% each, and the probability of him needing to ask 9 times is 20%; since 1+2+..+8+9+9 is 54, the average guesses per number is 5.4, so the average is 5.4*4=21.6)

A binary search ("is the number greater than or equal to 5?") would improve this average, but would open up the algorithm to timing attacks from Eve. I'm not sure whether a binary search with randomized index might help without revealing anything to Eve...
Mini-Geek is offline   Reply With Quote
Old 2013-10-30, 16:51   #28
retina
Undefined
 
retina's Avatar
 
"The unspeakable one"
Jun 2006
My evil lair

22×32×173 Posts
Default

Quote:
Originally Posted by Mini-Geek View Post
A binary search ("is the number greater than or equal to 5?") would improve this average, but would open up the algorithm to timing attacks from Eve. I'm not sure whether a binary search with randomized index might help without revealing anything to Eve...
Bob could randomly ask whether the number if greater or lesser than the next pivot value. I think that leaves Eve with no information to work with.
retina is online now   Reply With Quote
Old 2013-10-30, 17:33   #29
Mini-Geek
Account Deleted
 
Mini-Geek's Avatar
 
"Tim Sorbera"
Aug 2006
San Antonio, TX USA

10AB16 Posts
Default

Quote:
Originally Posted by Flatlander View Post
(Or some other restriction to make it more interesting.)
What if Eve can overhear some (say, with probability p) of the words Bob says? E.g. let's say for any given word, regardless of the word length, there is a 95% (p=.95) chance that Eve can hear it, and a 5% chance that she cannot (and suppose these are independent events: if Eve misses a word, the probability of hearing the next word is still p). Alice and Bob don't know what words Eve did and did not hear. How can they minimize the probability that she will get the PIN? Would the solution be different depending on p, where 0 < p < 1, e.g. p=.05 or p=.5?

Last fiddled with by Mini-Geek on 2013-10-30 at 17:39
Mini-Geek is offline   Reply With Quote
Old 2013-10-30, 20:55   #30
ewmayer
2ω=0
 
ewmayer's Avatar
 
Sep 2002
República de California

19×613 Posts
Default

I suggest the OP is ill-posed, since it omits vital details:

o Can Eve hear only what Alice says, or possibly also Bob's replies? If the former, see "public key crypto" or some variant of the "Bob begins reciting random digits, Alice says yes or no to each" method, done.

o Is Alice using a voice-only phone, or multimode? If the latter, can Eve see the keypad?
ewmayer is offline   Reply With Quote
Old 2013-10-30, 21:56   #31
Brian-E
 
Brian-E's Avatar
 
"Brian"
Jul 2007
The Netherlands

7×467 Posts
Default

Quote:
Originally Posted by ewmayer View Post
I suggest the OP is ill-posed, since it omits vital details:

o Can Eve hear only what Alice says, or possibly also Bob's replies? If the former, see "public key crypto" or some variant of the "Bob begins reciting random digits, Alice says yes or no to each" method, done.

o Is Alice using a voice-only phone, or multimode? If the latter, can Eve see the keypad?
o Does Eve work for the NSA? (If so, just forget it, the problem is insoluble.)
Brian-E is offline   Reply With Quote
Old 2013-10-30, 22:01   #32
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

2·67·73 Posts
Default

Quote:
Originally Posted by Brian-E View Post
o Does Eve work for the NSA? (If so, just forget it, the problem is insoluble.)
You have read Neal Stephenson?

Cryptonomicon is when he got serious.
chalsall is online now   Reply With Quote
Old 2013-10-30, 22:42   #33
Brian-E
 
Brian-E's Avatar
 
"Brian"
Jul 2007
The Netherlands

7·467 Posts
Default

Quote:
Originally Posted by chalsall View Post
You have read Neal Stephenson?

Cryptonomicon is when he got serious.
No, and thanks for the literary tip.
Brian-E is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cell Phone AstroPhotography Spherical Cow Astronomy 59 2019-01-21 22:47
How to test your cell phone warranty Damian Lounge 58 2019-01-03 18:57
You can trigger SWAT team shakedowns with a phone call jasong jasong 3 2014-09-14 03:12
IRS Phone Scam wblipp Lounge 0 2014-09-09 18:42
Prime95 on a cell phone JuanTutors Lounge 5 2004-08-18 08:53

All times are UTC. The time now is 23:28.


Fri Aug 6 23:28:41 UTC 2021 up 14 days, 17:57, 1 user, load averages: 3.31, 3.79, 3.94

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.