Math Problem (involves probability, I think at least)

jarsoffart

Golden Member
Jan 11, 2002
1,832
0
71
"A certain village in Jacobean times had all the valuables locked in a common town chest. The chest had a number of locks on it, each lock with a different key. The aim of the village was to ensure that any three people of the village would amongst them have enough keys to open the chest, but no two people would be able to. How many locks are required, and how many keys?"

I don't know the answer...
 

jarsoffart

Golden Member
Jan 11, 2002
1,832
0
71
Isn't there some quote with the essence of "If you forget history it will repeat itself."?
 

Novgrod

Golden Member
Mar 3, 2001
1,142
0
0
This question asks you to assume quite a bit, but:

if we assume that each person can unlock two locks at the same time, then a chest with four locks can be unlocked by two people. A chest with five or six locks can be unlocked by three people, but not by two people. This way you can give everybody the same five or six keys, one for each lock, and three people can have at it.

This seems a little simple so I'm assuming i've missed something.
 

jarsoffart

Golden Member
Jan 11, 2002
1,832
0
71
Originally posted by: Novgrod
A chest with five or six locks can be unlocked by three people, but not by two people.

What if each person can open three locks? How can you be sure that the three have the same two keys that can only open two kinds of locks?
 

Calundronius

Senior member
May 19, 2002
225
0
0
Originally posted by: Novgrod
This question asks you to assume quite a bit, but:

if we assume that each person can unlock two locks at the same time, then a chest with four locks can be unlocked by two people. A chest with five or six locks can be unlocked by three people, but not by two people. This way you can give everybody the same five or six keys, one for each lock, and three people can have at it.

This seems a little simple so I'm assuming i've missed something.
I agree that the problem isn't worded well at all. To much left up in the air.
The answer definitly involves the pigeon hole principle, and here's how I'd go about solving it:
The chest will have some number of locks. Each lock requires a specific type of key. A key for lock #3 won't unlock any of the others, for example.
All the townspeople are given some number of keys: one person may get keys for locks #1 and #4, another for #2 and #3, another for #1 and 3, and so on...they are given randomly but distributed so that no-one gets two copies of the same key.
You just have to figure out how many locks there have to be, and how many keys...I think 5 locks and 3 keys per person will do it, but I'm not sure.

But the question is so ambigious, you could say that the chest is a very complicated lock system, with a unique key for every citizen, and the locking system designed to open for any three keys. Don't ask me to design it, but it could be done.
 

diskop

Golden Member
Jul 14, 2001
1,262
0
0
Yeah exactly. The question is too ambiguous. We need a bit more information on the locks, how many keys a person should have, etc.
 

jarsoffart

Golden Member
Jan 11, 2002
1,832
0
71
I don't know the answer and that is all the information I was given, but I know that you are supposed to decide how many keys each person should have and I'm assuming that each lock can only be opened by one kind of key and each key can open only one kind of lock.

I think 5 locks and 3 keys per person will do it, but I'm not sure.

What if each of the three people had the same three keys, since the keys are given out randomly, so that only three of the five different locks on the chest can be opened? What is the pigeonhole principle by the way? hahaha... I really hope this is solvable.
 

Soccer55

Golden Member
Jul 9, 2000
1,660
4
81
I think the number of keys that you give to each person will be determined by the number of locks. For example, if you give each person X keys, you may need 2X locks on the chest. I agree with the others that have said that this may involve the Pigeonhole Principle.

-Tom
 

0ops

Senior member
Jul 4, 2001
277
0
0
1) This is a combinatorics, not probability question
2) It is not ambiguous nor poorly worded, you just have to read it carefully:

Each person is given a set of keys. Two people may have some keys in common but they wont have all the keys
needed to open all the locks. However, three people will (or you can pretend they are combination locks, any two
people wont know all the combinations, but any three will).

Answer Below:






























Suppose there are P people in the village. A lock is made for every possible pair of people (in other words P*(P-1)/2 locks). The key for
a lock is NOT given to either of the pair associated with the lock, but it is given to everyone else. In this way any two people
will always have a lock they can't open (but they can open all other locks) and any third person can open the lock that those two
people can't. So how many keys does each person have? He has a key for each possible pair of people that doesn't include him:
(P-1) * (P-2) / 2.

Example: There are 4 people, ABCD and so 6 keys, numbered 1,2,3,4,5,6. All possible pairs of people (and the key that they both DONT have) are:
AB 1
AC 2
AD 3
BC 4
BD 5
CD 6

So
A has keys 4,5,6
B has keys 2,3,6
C has keys 1,3,5
D has keys 1,2,4

You can check that this works.
 

Peetoeng

Golden Member
Dec 21, 2000
1,866
0
0
Did Jacobian time Napster-like service in which people can trade keys exist? If it did, that'd complicate the problem.

Let me try baby-step process here:

Say that,
K = number of keys (each is different) given to each citizen
L = number of locks on the town chest.

Requirement:
(1) 2K keys will not open the chest because either:
a. they don't have enough keys (<L)
b. they have > L keys but some are identical so distinct keys < L

(2) 3K keys will open the chest because:
a. they have L keys and each key is different
b. they have > L keys, some are identical keys.


What are K and L?

If we just need to satisfy 1a and 2a, the problem is trivial: 3K = L.

Distinct keys from every 3 combinatorial of (L,K) = L.

Someone picks this up...



 

jarsoffart

Golden Member
Jan 11, 2002
1,832
0
71
0ops is a genius!!! HE/SHE IS A MAD GENIUS!! I actually haven't checked his answer (hahaha) but it sounds good and I'm too tired. 0ops must go to Caltech, not a dumb school like Stanford and Berkeley.
 

diskop

Golden Member
Jul 14, 2001
1,262
0
0
Originally posted by: jarsoffart
0ops is a genius!!! HE/SHE IS A MAD GENIUS!! I actually haven't checked his answer (hahaha) but it sounds good and I'm too tired. 0ops must go to Caltech, not a dumb school like Stanford and Berkeley.

Very true. Man Berkeley Sucks(tm).
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |