Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Operator, please trace this call and tell me where I am.


interests / rec.puzzles / A flashlight takes 2 (working) batteries.

SubjectAuthor
* A flashlight takes 2 (working) batteries.henh...@gmail.com
`* Re: A flashlight takes 2 (working) batteries.Kerr-Mudd, John
 +- Re: A flashlight takes 2 (working) batteries.Richard Heathfield
 `* Re: A flashlight takes 2 (working) batteries.Edward Murphy
  +- Re: A flashlight takes 2 (working) batteries.henh...@gmail.com
  `* Re: A flashlight takes 2 (working) batteries.Edward Murphy
   +- Re: A flashlight takes 2 (working) batteries.henh...@gmail.com
   `- Re: A flashlight takes 2 (working) batteries.henh...@gmail.com

1
A flashlight takes 2 (working) batteries.

<e3b4e4dd-7483-4e32-ab06-9e2216a2ab62n@googlegroups.com>

  copy mid

https://novabbs.com/interests/article-flat.php?id=458&group=rec.puzzles#458

  copy link   Newsgroups: rec.puzzles
X-Received: by 2002:ae9:e903:0:b0:6ba:e5aa:d59e with SMTP id x3-20020ae9e903000000b006bae5aad59emr12886369qkf.214.1661888262752;
Tue, 30 Aug 2022 12:37:42 -0700 (PDT)
X-Received: by 2002:a37:5e41:0:b0:6b9:19c4:70cf with SMTP id
s62-20020a375e41000000b006b919c470cfmr12810409qkb.348.1661888262571; Tue, 30
Aug 2022 12:37:42 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: rec.puzzles
Date: Tue, 30 Aug 2022 12:37:42 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=2601:648:8600:a760:0:0:0:c3e9;
posting-account=YjTkGAoAAAA4_fbAISfvtIqrYbghMeBx
NNTP-Posting-Host: 2601:648:8600:a760:0:0:0:c3e9
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <e3b4e4dd-7483-4e32-ab06-9e2216a2ab62n@googlegroups.com>
Subject: A flashlight takes 2 (working) batteries.
From: henha...@gmail.com (henh...@gmail.com)
Injection-Date: Tue, 30 Aug 2022 19:37:42 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1849
 by: henh...@gmail.com - Tue, 30 Aug 2022 19:37 UTC

------ pls wait 3+ days (Longer if you find it easy or trivial) before posting answers or hints.

A flashlight takes 2 (working) batteries.

There are 8 batteries (on the Table), but some of them may be Dead (and Non-Conducting).

To guarantee that the flashlight gets turned on, what is the minimum number of battery pairs you need to test ?

(0) ... when you have Zero additional info

(1) ... when exactly 1 of the batteries is Dead.

(2) ... when exactly 2 of the batteries are Dead.

(3) ... when exactly 3 of the batteries are Dead.

(4) ... when exactly 4 of the batteries are Dead.

(5) ... when exactly 5 of the batteries are Dead.

(6) ... when exactly 6 of the batteries are Dead.

(7) ... when exactly 7 of the batteries are Dead.

Re: A flashlight takes 2 (working) batteries.

<20220831103637.07a2d0361c6ba66e825f921f@127.0.0.1>

  copy mid

https://novabbs.com/interests/article-flat.php?id=459&group=rec.puzzles#459

  copy link   Newsgroups: rec.puzzles
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: adm...@127.0.0.1 (Kerr-Mudd, John)
Newsgroups: rec.puzzles
Subject: Re: A flashlight takes 2 (working) batteries.
Date: Wed, 31 Aug 2022 10:36:37 +0100
Organization: Dis
Lines: 41
Message-ID: <20220831103637.07a2d0361c6ba66e825f921f@127.0.0.1>
References: <e3b4e4dd-7483-4e32-ab06-9e2216a2ab62n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: reader01.eternal-september.org; posting-host="74cebfceb4025a7f7ef2a0e505303ac7";
logging-data="1857833"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+S/dVxvQoSGPFQprhbBYuDDW/INS/2fRE="
Cancel-Lock: sha1:tA65C5nRySdG87BT8ha5Z/wC754=
;X-no-Archive: Maybe
X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32)
GNU: Terry Pratchett
 by: Kerr-Mudd, John - Wed, 31 Aug 2022 09:36 UTC

On Tue, 30 Aug 2022 12:37:42 -0700 (PDT)
"henh...@gmail.com" <henhanna@gmail.com> wrote:

>
> ------ pls wait 3+ days (Longer if you find it easy or trivial) before posting answers or hints.
>

Feh.
>
>
> A flashlight takes 2 (working) batteries.
>
> There are 8 batteries (on the Table), but some of them may be Dead (and Non-Conducting).
>
> To guarantee that the flashlight gets turned on, what is the minimum number of battery pairs you need to test ?
>
>
> (0) ... when you have Zero additional info
>
> (1) ... when exactly 1 of the batteries is Dead.
2

>
> (2) ... when exactly 2 of the batteries are Dead.
>
> (3) ... when exactly 3 of the batteries are Dead.
>
> (4) ... when exactly 4 of the batteries are Dead.
>
> (5) ... when exactly 5 of the batteries are Dead.
>
> (6) ... when exactly 6 of the batteries are Dead.

You'll probably need some stats nCx type combinatorics to get these.

>
> (7) ... when exactly 7 of the batteries are Dead.
0. It ain't gonna work.

--
Bah, and indeed Humbug.

Re: A flashlight takes 2 (working) batteries.

<tenclp$1pljk$1@dont-email.me>

  copy mid

https://novabbs.com/interests/article-flat.php?id=460&group=rec.puzzles#460

  copy link   Newsgroups: rec.puzzles
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: rjh...@cpax.org.uk (Richard Heathfield)
Newsgroups: rec.puzzles
Subject: Re: A flashlight takes 2 (working) batteries.
Date: Wed, 31 Aug 2022 11:20:41 +0100
Organization: Fix this later
Lines: 24
Message-ID: <tenclp$1pljk$1@dont-email.me>
References: <e3b4e4dd-7483-4e32-ab06-9e2216a2ab62n@googlegroups.com>
<20220831103637.07a2d0361c6ba66e825f921f@127.0.0.1>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 31 Aug 2022 10:20:41 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="075f8e9bce78134682683d8adaf50bd8";
logging-data="1889908"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/IQHYFc+3zwssW1Kl09xatYrkbdbLG9KbiiDuGNQRiyw=="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.11.0
Cancel-Lock: sha1:t7MYyj5Of1fvChHerDhTf+h3dyo=
Content-Language: en-GB
In-Reply-To: <20220831103637.07a2d0361c6ba66e825f921f@127.0.0.1>
 by: Richard Heathfield - Wed, 31 Aug 2022 10:20 UTC

On 31/08/2022 10:36 am, Kerr-Mudd, John wrote:
> On Tue, 30 Aug 2022 12:37:42 -0700 (PDT)
> "henh...@gmail.com" <henhanna@gmail.com> wrote:
>
>>
>> ------ pls wait 3+ days (Longer if you find it easy or trivial) before posting answers or hints.
>>
>
> Feh.
>>
>>
>> A flashlight takes 2 (working) batteries.
>>
>> There are 8 batteries (on the Table), but some of them may be Dead (and Non-Conducting).
>>
>> To guarantee that the flashlight gets turned on, what is the minimum number of battery pairs you need to test ?

Zero. (Be prepared. Always carry fresh torch batteries.)

--
Richard Heathfield
Email: rjh at cpax dot org dot uk
"Usenet is a strange place" - dmr 29 July 1999
Sig line 4 vacant - apply within

Re: A flashlight takes 2 (working) batteries.

<tf65cv$1ouh$1@gioia.aioe.org>

  copy mid

https://novabbs.com/interests/article-flat.php?id=469&group=rec.puzzles#469

  copy link   Newsgroups: rec.puzzles
Path: i2pn2.org!i2pn.org!aioe.org!SABVAYcHOklaNK/u1FQzwA.user.46.165.242.75.POSTED!not-for-mail
From: emurph...@zoho.com (Edward Murphy)
Newsgroups: rec.puzzles
Subject: Re: A flashlight takes 2 (working) batteries.
Date: Mon, 5 Sep 2022 17:48:24 -0700
Organization: Aioe.org NNTP Server
Message-ID: <tf65cv$1ouh$1@gioia.aioe.org>
References: <e3b4e4dd-7483-4e32-ab06-9e2216a2ab62n@googlegroups.com>
<20220831103637.07a2d0361c6ba66e825f921f@127.0.0.1>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="58321"; posting-host="SABVAYcHOklaNK/u1FQzwA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.13.0
Content-Language: en-US
X-Notice: Filtered by postfilter v. 0.9.2
 by: Edward Murphy - Tue, 6 Sep 2022 00:48 UTC

On 8/31/2022 2:36 AM, Kerr-Mudd, John wrote:

> On Tue, 30 Aug 2022 12:37:42 -0700 (PDT)
> "henh...@gmail.com" <henhanna@gmail.com> wrote:
>
>>
>> ------ pls wait 3+ days (Longer if you find it easy or trivial) before posting answers or hints.
>>
>
> Feh.
>>
>>
>> A flashlight takes 2 (working) batteries.
>>
>> There are 8 batteries (on the Table), but some of them may be Dead (and Non-Conducting).
>>
>> To guarantee that the flashlight gets turned on, what is the minimum number of battery pairs you need to test ?
>>
>>
>> (0) ... when you have Zero additional info
>>
>> (1) ... when exactly 1 of the batteries is Dead.
> 2
>
>>
>> (2) ... when exactly 2 of the batteries are Dead.
>>
>> (3) ... when exactly 3 of the batteries are Dead.
>>
>> (4) ... when exactly 4 of the batteries are Dead.
>>
>> (5) ... when exactly 5 of the batteries are Dead.
>>
>> (6) ... when exactly 6 of the batteries are Dead.
>
> You'll probably need some stats nCx type combinatorics to get these.

Some of these are simpler. Label the batteries A through H, then test
AB CD EF GH in that order:

(2) 3. Worst-case scenario is that the dead batteries are (one of AB)
and (one of CD).

Similarly, (3) 4. Worst-case scenario is (one of AB), (one of CD), and
(one of EF).

(4) and (5) are the most complex of the bunch.

* There are C(8, 2) = 28 unordered pairs of batteries.

* For (4), if we test AB CD EF GH and they all fail, then the dead
batteries are (one of AB), (one of CD), (one of EF), and (one of
GH). So then we can test AC AD BC BD in that order, and the
worst-case scenario is that A and C are dead. So we can succeed
with at most 8 tests; there may be a more efficient approach,
though I don't know what it would be.

* For (5), if we test the C(7, 2) = 21 unordered pairs that *don't*
contain H, then we can succeed with at most 21 tests. (Even if H
works, so do two others.) Again, there may be a more efficient
approach, though I don't know what it would be.

(6) 28. The worst-case scenario is that, whichever pair we try last,
those two are the only two working batteries.

>> (7) ... when exactly 7 of the batteries are Dead.
> 0. It ain't gonna work.
>

Re: A flashlight takes 2 (working) batteries.

<00812047-38aa-43dd-8be1-5899308bba49n@googlegroups.com>

  copy mid

https://novabbs.com/interests/article-flat.php?id=471&group=rec.puzzles#471

  copy link   Newsgroups: rec.puzzles
X-Received: by 2002:a05:622a:1453:b0:344:5909:ba44 with SMTP id v19-20020a05622a145300b003445909ba44mr40977212qtx.132.1662430443717;
Mon, 05 Sep 2022 19:14:03 -0700 (PDT)
X-Received: by 2002:a05:6214:1c07:b0:4a4:bf44:df79 with SMTP id
u7-20020a0562141c0700b004a4bf44df79mr7158782qvc.1.1662430443552; Mon, 05 Sep
2022 19:14:03 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: rec.puzzles
Date: Mon, 5 Sep 2022 19:14:03 -0700 (PDT)
In-Reply-To: <tf65cv$1ouh$1@gioia.aioe.org>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:648:8601:2db0:0:0:0:88c;
posting-account=YjTkGAoAAAA4_fbAISfvtIqrYbghMeBx
NNTP-Posting-Host: 2601:648:8601:2db0:0:0:0:88c
References: <e3b4e4dd-7483-4e32-ab06-9e2216a2ab62n@googlegroups.com>
<20220831103637.07a2d0361c6ba66e825f921f@127.0.0.1> <tf65cv$1ouh$1@gioia.aioe.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <00812047-38aa-43dd-8be1-5899308bba49n@googlegroups.com>
Subject: Re: A flashlight takes 2 (working) batteries.
From: henha...@gmail.com (henh...@gmail.com)
Injection-Date: Tue, 06 Sep 2022 02:14:03 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 3485
 by: henh...@gmail.com - Tue, 6 Sep 2022 02:14 UTC

On Monday, September 5, 2022 at 5:48:33 PM UTC-7, Edward Murphy wrote:
> On 8/31/2022 2:36 AM, Kerr-Mudd, John wrote:
>
> > On Tue, 30 Aug 2022 12:37:42 -0700 (PDT)
> > "henh...@gmail.com" <henh...@gmail.com> wrote:
> >
> >>
> >> ------ pls wait 3+ days (Longer if you find it easy or trivial) before posting answers or hints.
> >>
> >
> > Feh.
> >>
> >>
> >> A flashlight takes 2 (working) batteries.
> >>
> >> There are 8 batteries (on the Table), but some of them may be Dead (and Non-Conducting).
> >>
> >> To guarantee that the flashlight gets turned on, what is the minimum number of battery pairs you need to test ?
> >>
> >>
> >> (0) ... when you have Zero additional info
> >>
> >> (1) ... when exactly 1 of the batteries is Dead.
> > 2
> >
> >>
> >> (2) ... when exactly 2 of the batteries are Dead.
> >>
> >> (3) ... when exactly 3 of the batteries are Dead.
> >>
> >> (4) ... when exactly 4 of the batteries are Dead.
> >>
> >> (5) ... when exactly 5 of the batteries are Dead.
> >>
> >> (6) ... when exactly 6 of the batteries are Dead.
> >
> > You'll probably need some stats nCx type combinatorics to get these.
> Some of these are simpler. Label the batteries A through H, then test
> AB CD EF GH in that order:
>
> (2) 3. Worst-case scenario is that the dead batteries are (one of AB)
> and (one of CD).
>
> Similarly, (3) 4. Worst-case scenario is (one of AB), (one of CD), and
> (one of EF).
>
> (4) and (5) are the most complex of the bunch.
>
> * There are C(8, 2) = 28 unordered pairs of batteries.
>
> * For (4), if we test AB CD EF GH and they all fail, then the dead
> batteries are (one of AB), (one of CD), (one of EF), and (one of
> GH). So then we can test AC AD BC BD in that order, and the
> worst-case scenario is that A and C are dead. So we can succeed
> with at most 8 tests; there may be a more efficient approach,
> though I don't know what it would be.
>

(on the Net) i only see flashlight(2, 8, 4) being asked, mentioned
(in the many Web pages and Youtube clips)

but (i think) flashlight(2, 6, 3) is interesting too.

Re: A flashlight takes 2 (working) batteries.

<tfm0ri$9l9$1@gioia.aioe.org>

  copy mid

https://novabbs.com/interests/article-flat.php?id=475&group=rec.puzzles#475

  copy link   Newsgroups: rec.puzzles
Path: i2pn2.org!i2pn.org!aioe.org!SABVAYcHOklaNK/u1FQzwA.user.46.165.242.75.POSTED!not-for-mail
From: emurph...@zoho.com (Edward Murphy)
Newsgroups: rec.puzzles
Subject: Re: A flashlight takes 2 (working) batteries.
Date: Sun, 11 Sep 2022 18:09:05 -0700
Organization: Aioe.org NNTP Server
Message-ID: <tfm0ri$9l9$1@gioia.aioe.org>
References: <e3b4e4dd-7483-4e32-ab06-9e2216a2ab62n@googlegroups.com>
<20220831103637.07a2d0361c6ba66e825f921f@127.0.0.1>
<tf65cv$1ouh$1@gioia.aioe.org>
<4207290f-434c-4755-8207-ae0d00e708a1n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="9897"; posting-host="SABVAYcHOklaNK/u1FQzwA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.13.0
Content-Language: en-US
X-Notice: Filtered by postfilter v. 0.9.2
 by: Edward Murphy - Mon, 12 Sep 2022 01:09 UTC

On 9/5/2022 10:15 PM, henh...@gmail.com wrote:

> On Monday, September 5, 2022 at 5:48:33 PM UTC-7, Edward Murphy wrote:
>> On 8/31/2022 2:36 AM, Kerr-Mudd, John wrote:
>>
>>> On Tue, 30 Aug 2022 12:37:42 -0700 (PDT)
>>> "henh...@gmail.com" <henh...@gmail.com> wrote:
>>>
>>>>
>>>> ------ pls wait 3+ days (Longer if you find it easy or trivial) before posting answers or hints.
>>>>
>>>
>>> Feh.
>>>>
>>>>
>>>> A flashlight takes 2 (working) batteries.
>>>>
>>>> There are 8 batteries (on the Table), but some of them may be Dead (and Non-Conducting).
>>>>
>>>> To guarantee that the flashlight gets turned on, what is the minimum number of battery pairs you need to test ?
>>>>
>>>>
>>>> (0) ... when you have Zero additional info
>>>>
>>>> (1) ... when exactly 1 of the batteries is Dead.
>>> 2
>>>
>>>>
>>>> (2) ... when exactly 2 of the batteries are Dead.
>>>>
>>>> (3) ... when exactly 3 of the batteries are Dead.
>>>>
>>>> (4) ... when exactly 4 of the batteries are Dead.
>>>>
>>>> (5) ... when exactly 5 of the batteries are Dead.
>>>>
>>>> (6) ... when exactly 6 of the batteries are Dead.
>>>
>>> You'll probably need some stats nCx type combinatorics to get these.
>> Some of these are simpler. Label the batteries A through H, then test
>> AB CD EF GH in that order:
>>
>> (2) 3. Worst-case scenario is that the dead batteries are (one of AB)
>> and (one of CD).
>>
>> Similarly, (3) 4. Worst-case scenario is (one of AB), (one of CD), and
>> (one of EF).
>>
>> (4) and (5) are the most complex of the bunch.
>>
>> * There are C(8, 2) = 28 unordered pairs of batteries.
>>
>> * For (4), if we test AB CD EF GH and they all fail, then the dead
>> batteries are (one of AB), (one of CD), (one of EF), and (one of
>> GH). So then we can test AC AD BC BD in that order, and the
>> worst-case scenario is that A and C are dead. So we can succeed
>> with at most 8 tests; there may be a more efficient approach,
>> though I don't know what it would be.
>>
>> * For (5), if we test the C(7, 2) = 21 unordered pairs that *don't*
>> contain H, then we can succeed with at most 21 tests. (Even if H
>> works, so do two others.) Again, there may be a more efficient
>> approach, though I don't know what it would be.
>>
>
>
> (5 dead) ... when exactly 5 of the batteries are Dead. (and 3 are Alive)
>
>
> method 5A requires 12 moves in the worst case.
>
> method 5B requires 13 moves in the worst case. ---- could this one be BETTER in some way ?

I don't understand what specific methods you're labeling as 5A and 5B
here. (If they're different methods to approach the same scenario, then
clearly 5B could "be better": you could replace it with 5A.)

Taking the same sort of constructive approach that I labeled (4) above
(4 dead / 4 alive), and applying it to the case of 5 dead / 3 alive:

* Test AB CD EF GH. Worst case is that they all fail, meaning that the
5 dead batteries include one from AB, one from CD, one from EF, and
one from GH.

* Test AC AD BC BD. Worst case is that they all fail, meaning that the
5 dead batteries include either (both A and B) or (both C and D).

* Test EG EH FG FH. Worst case is that the first three fail, meaning
that E and G are dead, in which case FH succeeds (test #12).

I'm guessing that this is what you meant by 5A. 5B remains unclear.

> in these problems, we are trying to reduce the # of moves in the worst case.
>
> Do we have interesting (new) genre of problems, if we instead
> tried to reduce the # of moves in the average case ?

Interesting to someone, I'm sure; but while I would not be confident of
(worst case 4 of 8 dead) or (worst case 5 of 8 dead) without running a
brute-force computer analysis, I wouldn't even attempt this new type of
problem without such an analysis.

In each case, if there are X batteries (Y of which are dead), then we
have:

* C(X, Y) possibilities for the subset of all dead batteries. These
are the possible scenarios that we could start in.

* N = C(X, 2) possibilities for pairs of batteries to test, thus
factorial(N) permutations of those pairs. These permutations are
the possible search strategies that we could follow.

Then compare every strategy in the second part to every scenario in the
first part, and calculate each strategy's worst case and average case.

Re: A flashlight takes 2 (working) batteries.

<bdf06147-d64c-4974-949d-31e3eca1d540n@googlegroups.com>

  copy mid

https://novabbs.com/interests/article-flat.php?id=476&group=rec.puzzles#476

  copy link   Newsgroups: rec.puzzles
X-Received: by 2002:a37:2d85:0:b0:6cb:b8cb:4ed9 with SMTP id t127-20020a372d85000000b006cbb8cb4ed9mr15292137qkh.111.1662948021364;
Sun, 11 Sep 2022 19:00:21 -0700 (PDT)
X-Received: by 2002:a0c:ab07:0:b0:474:9c36:413e with SMTP id
h7-20020a0cab07000000b004749c36413emr21061536qvb.56.1662948021172; Sun, 11
Sep 2022 19:00:21 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: rec.puzzles
Date: Sun, 11 Sep 2022 19:00:20 -0700 (PDT)
In-Reply-To: <tfm0ri$9l9$1@gioia.aioe.org>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:648:8600:d850:0:0:0:645e;
posting-account=YjTkGAoAAAA4_fbAISfvtIqrYbghMeBx
NNTP-Posting-Host: 2601:648:8600:d850:0:0:0:645e
References: <e3b4e4dd-7483-4e32-ab06-9e2216a2ab62n@googlegroups.com>
<20220831103637.07a2d0361c6ba66e825f921f@127.0.0.1> <tf65cv$1ouh$1@gioia.aioe.org>
<4207290f-434c-4755-8207-ae0d00e708a1n@googlegroups.com> <tfm0ri$9l9$1@gioia.aioe.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <bdf06147-d64c-4974-949d-31e3eca1d540n@googlegroups.com>
Subject: Re: A flashlight takes 2 (working) batteries.
From: henha...@gmail.com (henh...@gmail.com)
Injection-Date: Mon, 12 Sep 2022 02:00:21 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2856
 by: henh...@gmail.com - Mon, 12 Sep 2022 02:00 UTC

> >>>> ------ pls wait 3+ days (Longer if you find it easy or trivial) before posting answers or hints.

> >>>>
> >> A flashlight takes 2 (working) batteries.
> >>
> >> There are 8 batteries (on the Table), but some of them may be Dead (and Non-Conducting).
> >>
> >> To guarantee that the flashlight gets turned on,
what is the minimum number of battery pairs you need to test ?

flashlight-2 ( 8 batteries, 4 dead ) ------ the answer to this problem (above) is all over the Web pages and Youtube.

For a few minutes, i thought this guy (below) had a solution that's ONE better than the standard correct answer (7 tries, --- 3,3,2 split or grouping)

He's just counting the tries (or [defining the prob.] ) differently.

The flashlight must actually turn on... So he'd still need the 7th try.

https://www.quora.com/You-are-given-a-flash-light-which-takes-2-good-batteries-to-run-and-8-batteries-4-good-ones-and-4-used-up-What-is-the-minimal-number-of-trials-needed-to-get-the-flashlight-running

Profile photo for Saish Datta Data Scientist 5y

I think we can do it in 6:

Try AB, BC and AC. If none of the pairs work at most one out of ABC is working.

That leaves at least three working among DEFGH.

Try DE, EF and DF. If none of the pairs work(1 out of DEF is working)then remaining 2 should work for sure.

Re: A flashlight takes 2 (working) batteries.

<119d90ec-4d3b-4f3d-985c-c700397423f5n@googlegroups.com>

  copy mid

https://novabbs.com/interests/article-flat.php?id=477&group=rec.puzzles#477

  copy link   Newsgroups: rec.puzzles
X-Received: by 2002:ac8:5b10:0:b0:35b:b8ed:987 with SMTP id m16-20020ac85b10000000b0035bb8ed0987mr53649qtw.538.1662958590529;
Sun, 11 Sep 2022 21:56:30 -0700 (PDT)
X-Received: by 2002:ad4:4eea:0:b0:4ac:6f50:3d6e with SMTP id
dv10-20020ad44eea000000b004ac6f503d6emr19145434qvb.3.1662958590374; Sun, 11
Sep 2022 21:56:30 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border-2.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: rec.puzzles
Date: Sun, 11 Sep 2022 21:56:30 -0700 (PDT)
In-Reply-To: <tfm0ri$9l9$1@gioia.aioe.org>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:648:8600:d850:0:0:0:645e;
posting-account=YjTkGAoAAAA4_fbAISfvtIqrYbghMeBx
NNTP-Posting-Host: 2601:648:8600:d850:0:0:0:645e
References: <e3b4e4dd-7483-4e32-ab06-9e2216a2ab62n@googlegroups.com>
<20220831103637.07a2d0361c6ba66e825f921f@127.0.0.1> <tf65cv$1ouh$1@gioia.aioe.org>
<4207290f-434c-4755-8207-ae0d00e708a1n@googlegroups.com> <tfm0ri$9l9$1@gioia.aioe.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <119d90ec-4d3b-4f3d-985c-c700397423f5n@googlegroups.com>
Subject: Re: A flashlight takes 2 (working) batteries.
From: henha...@gmail.com (henh...@gmail.com)
Injection-Date: Mon, 12 Sep 2022 04:56:30 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 139
 by: henh...@gmail.com - Mon, 12 Sep 2022 04:56 UTC

On Sunday, September 11, 2022 at 6:09:08 PM UTC-7, Edward Murphy wrote:
> On 9/5/2022 10:15 PM, henh...@gmail.com wrote:
>
> > On Monday, September 5, 2022 at 5:48:33 PM UTC-7, Edward Murphy wrote:
> >> On 8/31/2022 2:36 AM, Kerr-Mudd, John wrote:
> >>
> >>> On Tue, 30 Aug 2022 12:37:42 -0700 (PDT)
> >>> "henh...@gmail.com" <henh...@gmail.com> wrote:
> >>>
> >>>>
> >>>> ------ pls wait 3+ days (Longer if you find it easy or trivial) before posting answers or hints.
> >>>>
> >>>
> >>> Feh.
> >>>>
> >>>>
> >>>> A flashlight takes 2 (working) batteries.
> >>>>
> >>>> There are 8 batteries (on the Table), but some of them may be Dead (and Non-Conducting).
> >>>>
> >>>> To guarantee that the flashlight gets turned on, what is the minimum number of battery pairs you need to test ?
> >>>>
> >>>>
> >>>> (0) ... when you have Zero additional info
> >>>>
> >>>> (1) ... when exactly 1 of the batteries is Dead.
> >>> 2
> >>>
> >>>>
> >>>> (2) ... when exactly 2 of the batteries are Dead.
> >>>>
> >>>> (3) ... when exactly 3 of the batteries are Dead.
> >>>>
> >>>> (4) ... when exactly 4 of the batteries are Dead.
> >>>>
> >>>> (5) ... when exactly 5 of the batteries are Dead.
> >>>>
> >>>> (6) ... when exactly 6 of the batteries are Dead.
> >>>
> >>> You'll probably need some stats nCx type combinatorics to get these.
> >> Some of these are simpler. Label the batteries A through H, then test
> >> AB CD EF GH in that order:
> >>
> >> (2) 3. Worst-case scenario is that the dead batteries are (one of AB)
> >> and (one of CD).
> >>
> >> Similarly, (3) 4. Worst-case scenario is (one of AB), (one of CD), and
> >> (one of EF).
> >>
> >> (4) and (5) are the most complex of the bunch.
> >>
> >> * There are C(8, 2) = 28 unordered pairs of batteries.
> >>
> >> * For (4), if we test AB CD EF GH and they all fail, then the dead
> >> batteries are (one of AB), (one of CD), (one of EF), and (one of
> >> GH). So then we can test AC AD BC BD in that order, and the
> >> worst-case scenario is that A and C are dead. So we can succeed
> >> with at most 8 tests; there may be a more efficient approach,
> >> though I don't know what it would be.
> >>
> >> * For (5), if we test the C(7, 2) = 21 unordered pairs that *don't*
> >> contain H, then we can succeed with at most 21 tests. (Even if H
> >> works, so do two others.) Again, there may be a more efficient
> >> approach, though I don't know what it would be.
> >>
> >
> >
> > (5 dead) ... when exactly 5 of the batteries are Dead. (and 3 are Alive)
> >
> >
> > method 5A requires 12 moves in the worst case.
> >
> > method 5B requires 13 moves in the worst case. ---- could this one be BETTER in some way ?
> I don't understand what specific methods you're labeling as 5A and 5B
> here. (If they're different methods to approach the same scenario, then
> clearly 5B could "be better": you could replace it with 5A.)
>
> Taking the same sort of constructive approach that I labeled (4) above
> (4 dead / 4 alive), and applying it to the case of 5 dead / 3 alive:
>
> * Test AB CD EF GH. Worst case is that they all fail, meaning that the
> 5 dead batteries include one from AB, one from CD, one from EF, and
> one from GH.
>
> * Test AC AD BC BD. Worst case is that they all fail, meaning that the
> 5 dead batteries include either (both A and B) or (both C and D).
>
> * Test EG EH FG FH. Worst case is that the first three fail, meaning
> that E and G are dead, in which case FH succeeds (test #12).
>
> I'm guessing that this is what you meant by 5A. 5B remains unclear.

(yes)
that's the (4-4) split or grouping, and the (5-3) split or grouping may require 13 moves.

flashlight-2 ( 5 batteries, 2 dead )
flashlight-2 ( 6 batteries, 3 dead ) are also interesting.

also ...
flashlight-3 ( 6 batteries, 2 dead )
flashlight-3 ( 7 batteries, 2 dead )
flashlight-3 ( 7 batteries, 3 dead )

i'm trying to think.... what another problem (genre) is similar to this
(a bit like Tower of Hanoi) in that you 're basically building up a table from Below,
and bigger problems use earlier (smaller) problem(s) as subroutines..

---------- is this how you typically solve the [Fox, Sheep across the river on a boat] puzzle ?

> Fox eats goose and goose eats corn if left alone. Farmer can row the boat himself and doesn't …

> A farmer is travelling with a fox, a sheep and a small sack of hay. He comes to a river with a small boat in it. The boat can only support the farmer and one other animal/item. If the farmer leaves …

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor