Article View: sci.logic
Article #156Re: enigma
From: Stephen Bloch
Date: Tue, 08 Sep 1992 22:13
Date: Tue, 08 Sep 1992 22:13
26 lines
1900 bytes
1900 bytes
bouchard@ireq.hydro.qc.ca (Marco Bouchard ETUDIANT sept-dec 92) writes: >You have 10 vending machines to fill out with chocolate bars. In fact, >after finishing to put the chocolate, you remember that you had 9 boxes >of chocolate bars of 100g. and one box of bars of 90g and you gotta know >in which machine you put those of 90g.... >You can weigh as [many] >bars as you want, but you can take one measure. mab@wdl39.wdl.loral.com (Mark A Biggar) replies: >Take 1 bar from machine #1, 2 bars from machine #2, ... and 10 bars from >machine #10. Weight the whole set of bars. The expected weight is 5500g. >But some of the bars weight only 90g, so the actual weight will be some >number of 10g increments less then 5500g, that number is the number of the >machine with the 90g bars. Of course, this approach can be generalized to handle the case in which you're not sure how many of the boxes were underweight: take 1 bar from machine #1, 2 from #2, 4 from #3, 8 from #4, etc. Only problem is, one of the vending machines has to be capable of holding 1024 chocolate bars, and your scale has to be able to handle over 200 kg of chocolate. And then there's the question of what to DO with over 200 kg of chocolate... :-) -- Stephen Bloch sbloch@silver.cs.umanitoba.ca
Technical Details
Message-ID:
<1992Sep8.221339.174@ccu.umanitoba.ca>Path:
arc1-ca.pugleaf.net!sparky!uunet!wupost!gumby!destroyer!ubc-cs!alberta!kakwa.ucs.ualberta.ca!access.usask.ca!ccu.umanitoba.ca!silver.cs.umanitoba.ca!sblochReferences:
<Bu26KK.DEB@ireq.hydro.qc.ca> <1992Sep4.230629.2695@wdl.loral.com>Show Full Headers
Complete Article Headers
Newsgroups: sci.logic Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!gumby!destroyer!ubc-cs!alberta!kakwa.ucs.ualberta.ca!access.usask.ca!ccu.umanitoba.ca!silver.cs.umanitoba.ca!sbloch From: sbloch@silver.cs.umanitoba.ca (Stephen Bloch) Subject: Re: enigma Message-ID: <1992Sep8.221339.174@ccu.umanitoba.ca> Sender: news@ccu.umanitoba.ca Nntp-Posting-Host: silver.cs.umanitoba.ca Organization: Computer Science, University of Manitoba, Winnipeg, Canada References: <Bu26KK.DEB@ireq.hydro.qc.ca> <1992Sep4.230629.2695@wdl.loral.com> Distribution: na Date: Tue, 8 Sep 1992 22:13:39 GMT Lines: 26