We have two lamps that only function if both have a functioning bulb in them. We also have 5 functioning and 5 non-functioning light bulbs in a drawer. How should we proceed in trying out the light bulbs, if we want to use the lowest amount possible to light the lamps up?
Asked
Active
Viewed 319 times
1
2 Answers
1
The best I've been able to do is $12$ changes, but I don't know if that's the minimum. Here's my algorithm. In all cases, I assume the lamp doesn't light.
- AB (2 changes)
- AC
- BC
- DE (2 changes)
- DF
- EF At this point, we know there is at most one good bulb among A,B,C and at most one good bulb among DEF, so there are at least three good bulbs among G,H,I,J. So we test GH and if that fails, IJ is bound to succeed, giving four additional changes at most.
saulspatz
- 53,824
1
Another way to get minimum $12$ changes. Try $3$ pairs (6 changes): $$AB, CD, EF$$ They can be double defective or mixed.
Then, the rest $2$ pairs ($GH,IJ$) must have at least $2$ normal light bulbs. Try: $$GH \ (2 \text{ changes})\\ GI \ (1 \text{ change})\\ GJ \ (1 \text{ change})$$ If they don't light, then: $$HJ \ (2 \text{ changes})$$ will definitely light.
farruhota
- 32,168
-
-
-
How have you found all five working bulbs? And it is unclear how many "tests" you've made. Could you please specify the maximum number of tests to find all 5? – David G. Stork Oct 14 '19 at 06:24
-
It does not ask to find all $5$, but the $2$ working so that the lamps light up. The "tests" are the "changes", which add up to $12$. I followed the notations of @saulspatz to be consistent (therefore I started "Another way to..."). – farruhota Oct 14 '19 at 06:28
-
1Alright. I think the OP should have been clearer on the nature of the problem, but if it is just to light up the room, then your answer seems fine. – David G. Stork Oct 14 '19 at 06:43
probabilityif you are looking for a guarantee? Also, what does this have to do with game theory? – saulspatz Oct 13 '19 at 22:04