Thursday, June 30, 2011

GHETTO ENCRYPTION II

Three coworkers would like to know their average salary. However, they are self-conscious and don't want to tell each other their own salaries, for fear of either being ridiculed or getting their houses robbed. How can they find their average salary, without disclosing their own salaries? and there is no other person computer or any type of gadget
and these guys are mathematicians and will do anything to get to know others income

14 comments:

  1. they can tell their salaries to a fourth person who can calculate for them

    ReplyDelete
  2. no addy that is not the correct answer

    ReplyDelete
  3. okay then, they can write their salaries in chits of paper and put it in a box and the fourth person will calculate it so that no one knows any of the salaries lol

    ReplyDelete
  4. or they can calculate on their own also using chits

    ReplyDelete
  5. read the question correctly and its similar to ur last answer

    ReplyDelete
  6. if they use chits to calculate someone will get to know someone else ki income

    ReplyDelete
  7. but they will not know whose income is whose

    ReplyDelete
  8. but they will get a idea in my answer they wont have any idea what the income is

    ReplyDelete
  9. all of the three people will agree to put a fake salary .....
    and then they will take out their average.....then each one will correct their average by putting their own real salary instead of the fake one....
    so they will now have 3 different figures....now using these by simple maths and stats, they can calcultate the real mean

    ReplyDelete
  10. like this every one will have to tell their fake values and thru this on could calculate others income u are near but not there yet

    ReplyDelete
  11. okay i explain it like this...

    intial - fake1 + fake 2 + fake3/3 = fake avg. - i

    then - real 1 + fake 2 + fake 3/3 = real1fake avg.
    fake 1 + real 2 + fake 3/3 = real2fake avg.
    fake 1 + fake 2 + real 3/3 = real3fake avg.

    then they can tell their realxfake averages.= to each other

    adding all...
    (real 1 + real2 + real3) + 2(fake 1 + fake2 + fake3)/3 = real1fake + real2fake + real3fake avg.

    substitute the value of i and then you get the real avg :)

    ReplyDelete
  12. wrong the data available to them is more then u have metioned here for instance every one knows fake 1 + real 1 so when he tells fake 1 they will get to know real 1

    ReplyDelete
  13. @addy: by this they will get to knw each others salary

    ReplyDelete
  14. @sahil thats what i m trying to tell hi,

    ReplyDelete