Comments on: Yoak: Batteries, and the Problem of the Week http://mathfactor.uark.edu/2009/11/yoak-batteries-and-the-problem-of-the-week/ The Math Factor Podcast Site Fri, 08 Aug 2014 12:52:06 +0000 hourly 1 https://wordpress.org/?v=4.9.25 By: The Math Factor Podcast » Follow Up: Yoak: Batteries, and the Problem of the Week http://mathfactor.uark.edu/2009/11/yoak-batteries-and-the-problem-of-the-week/comment-page-1/#comment-665 Sat, 21 Nov 2009 21:45:21 +0000 http://mathfactor.uark.edu/?p=872#comment-665 […] Yoak: Batteries, and the Problem of the Week […]

]]>
By: laciermaths http://mathfactor.uark.edu/2009/11/yoak-batteries-and-the-problem-of-the-week/comment-page-1/#comment-664 Sat, 21 Nov 2009 11:34:23 +0000 http://mathfactor.uark.edu/?p=872#comment-664 First, put the batteries in pairs, and test each pair. Since exactly half of the batteries are good, we find zero, one, or two pairs of good batteries.
If we find two pairs, we are finished, and used at most four tests.
If we find one pair, then we have six batteries of unknown quality, of which two are good. A naive strategy suggests testing each of the six with one of the known-to-be-good batteries, so we should try to devise a strategy that uses fewer than six tests. To see that one doesn’t exist, consider that there are 15 possible tests we can run among the six batteries; only one of them will show up positive, and we have already gone through three of them. Since testing a good battery and a bad battery imparts no information about the good battery, we would need twelve tests in the worst case. So the naive strategy is best, and we use at most ten tests altogether in this case. (Another way to put it is that now, among the unknown batteries, a smaller proportion are good, so we can’t do any cute pigeonhole pairing tricks like we do above.)
If we find no good pairs, then exactly one battery in each pair is good. Suppose we take pairs (A,B) and (C,D), and both pairs tested negative. There are four remaining tests we can make on these four batteries, and we only need to execute three of them (if all of them are negative, then we know the last test would be positive by process of elimination). Thus we need three tests for each pair of pairs, or 4 + 3 + 3 altogether in the worst case.
Therefore at most ten tests are required to determine which batteries are good.

]]>