by abentspoon · 13y ago · 0 comments
An optimal, though inelegant solution to that goal might look something like this:
"Is the {1..33}th bit of sha1(name : location : date of birth) 1?".
Clearly you'll have tons of collisions with that solution, as you would have with any solution using 33 independent questions.
To uniquely identify people, we'd either need to use more bits, or look very closely at the population and derive very specific questions.
Why?
If we assume the hash code assignment to one of the 2^32 people is uniformly random from a set of 2^160 codes, the odds of finding a collision are astronomically small (order of 2^-95 or so). Am I missing something?
This is the birthday paradox with instead of 365 days you have 2^33 possible answer values and instead of 23 people you have 7 billion people. I leave it as an exercise for the reader to fill in these values into one of the formulas to calculate the probability of successfully giving each person a unique 33 bit answer: http://en.wikipedia.org/wiki/Birthday_problem
Right, my bad, didn't pay attention to the problem we are trying to solve :)