4

Situation: Alice has selected a positive integer $a$, and Bob has selected a positive integer $b$. Alice and Bob want to know whether $a > b$, $a = b$, or $a < b$, but neither wishes to reveal their chosen number to the other party.

How can Alice and Bob make this determination?

senshin
  • 155
  • 11

1 Answers1

1

As pointed out by Luke Mathieson in the comments, this problem is called Yao's Millionaire Problem, for which protocols can easily be found by Googling.

senshin
  • 155
  • 11
  • I do not understand the problem well enough at this point to write a good answer for this question. If somebody does write a good answer (or really, any answer), I will unaccept this answer and accept that instead. – senshin Nov 18 '13 at 23:59