Find The right cell

Logic Level 3

You are given a torch and 6 cells. The torch runs on 3 charged cells. Out of the given 6 cells, 3 cells are charged and other 3 are uncharged but you don't know which one is charged and which one is uncharged. What is the least number of attempts you need to make, to ensure it will light up the torch ?

13 16 12 20 14 8 15

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

There are 3 charged cells out of 6 cells given and we have to get that all the charged cells since there is no option of leaving any charged cells means there are no more than the required number of charged cells, we have to attempt all the combination of selecting 3 cells at a time and considering the worst case the last selection will lit the torch. So the answer is ( 6 3 ) = 20 \binom {6}{3} = 20

In fact I believe that if there are n n cells given and m n m \leq n cells are charged and the torch uses m m cells to light up then the least number of attempts to lit the torch is ( n m ) \binom {n}{m} . I don't know whether this hypothesis is true or not. If it is true I am not able to prove it.

Kano Boom
Apr 7, 2020

6C3 = 20 different possible combinations

will your method work if there are 8 cells out of which only 4 are charged and a torch which runs on 3 cells. According to your method total number of combination is ( 8 3 ) = 56 \binom {8}{3} = 56 and number of possible combination of charged cell is ( 4 3 ) = 4 \binom {4}{3} = 4 . So assuming the worst case 56 - 4 + 1 = 53 will be your answer. But I don't think that 53 is the least number of attempt to lit the torch.

Shikhar Srivastava - 1 year, 2 months ago

Not sure...

Kano Boom - 1 year, 2 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...