Exercises Videos Notes Multiple-choice questions

Related books

Combinatorial Problems and Exercises Algorithmic Puzzles Mathematical Puzzles: A Connoisseur's Collection The Art of Mathematics: Coffee Time in Memphis Mathematical Mind-Benders Suggest a Book
0

Secret salaries

Level: unknown
 

posted Jun 12 '12

kintali gravatar image Shiva Kintali flag of United States
691 1 6 22
http://www.cs.princeton.e...

updated Jun 18 '12

Three coworkers (A,B,C) would like to know their average salary. How can they achieve this without revealing their own salaries ?

More details :

  • No single person can know the salary of other persons.
  • It is ok if one person knows the sum of the salaries of the other two.
  • It is possible that two persons together can infer the salary of the third person.
  • They cannot use a fourth person.
  • Don't use RSA or any complicated encryption algorithm.
Source: folklore
Printable version LaTeX source
delete flag offensive retag edit

Comments

I think you should be more specific, students often first think of RSA. Can they use a fourth party? Is it okay for A if B and C jointly know his salary?

domotorp (Jun 18 '12)edit

Added more details.

Shiva Kintali (Jun 18 '12)edit

Stats

Posted: Jun 12 '12

Seen: 101 times

Last updated: Jun 18 '12