Find the Lightest Bag: Min Weighings Needed

  • Context: Undergrad 
  • Thread starter Thread starter Werg22
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around a problem involving five bags containing balls of different weights, specifically determining the minimum number of weighings required to identify the bag with the lighter balls. The scope includes theoretical reasoning and mathematical problem-solving strategies.

Discussion Character

  • Exploratory
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant suggests taking 1 ball from the first bag, 2 from the second, and so on, proposing a formula to calculate the bag number based on the total weight.
  • Another participant introduces a variation of the problem, asking about the minimum weighings needed if only one ball can be taken from each bag, indicating that a binary search could find the lighter ball in a maximum of 3 weighings, but sometimes only 1 weighing is necessary.
  • A different participant reiterates the binary search approach, providing a detailed example of how to identify the lighter ball through a series of weighings.
  • One participant challenges the previous assumptions by suggesting that adding balls to bags could change the minimum number of weighings required, proposing a method that would allow determination in 2 weighings.
  • Another participant emphasizes the importance of not quoting spoiler posts, indicating a meta-discussion about forum etiquette.

Areas of Agreement / Disagreement

Participants express differing views on the minimum number of weighings required, with some proposing 1 weighing under certain conditions, while others suggest that 2 weighings may be necessary depending on the approach taken. The discussion remains unresolved with multiple competing strategies presented.

Contextual Notes

There are limitations regarding assumptions about the methods allowed (e.g., whether adding balls to bags is permitted) and the definitions of the problem, which affect the proposed solutions.

Werg22
Messages
1,431
Reaction score
1
Interesting problem

Five bags each contain 10 balls. The first bag has yellow balls, the second blue balls, the third red balls, the fourth green balls and the fifth orange balls. All the balls in four of these bags (we don't know which ones) weigh 20 units each and the the balls in the remaining bag weigh 18 units. If we are to determine the bag containing the lighter balls by method of weighing on a single plate scale, what is the minimum number of weighings needed? Describe the procedure.
 
Last edited:
Mathematics news on Phys.org
easy

take 1 ball from the first bag , 2 from the second, 3 from the third, get the pattern?

Weigh the lot of them, bag number = (300 - weight)/2
 
This problem is well known I assume (not to take away any credit from you, Integral). I've came with this variation: if we're only allowed to take out 1 ball from each bag, what would be the minimum number of weighings?
 
Werg22 said:
This problem is well known I assume (not to take away any credit from you, Integral). I've came with this variation: if we're only allowed to take out 1 ball from each bag, what would be the minimum number of weighings?

Then you have 5 balls (A,B,C,D,E) and one of them is different.
A binary search will find the ball in 3 weighings (maximum).
But sometimes, just 1 weighing will be enough.
So, the minimum is 1 weighing.

Ex:
Weigh ABCD . If ABCD=80, then "E" is the ball. If ABCD=78, then weigh AB.
If AB=40, then weigh C. If C=20 , D is the ball (and if C=18...)
If AB=38, then weigh A. If A=20, B is the ball (and if A=18...)

:smile:
 
Rogerio said:
Then you have 5 balls (A,B,C,D,E) and one of them is different.
A binary search will find the ball in 3 weighings (maximum).
But sometimes, just 1 weighing will be enough.
So, the minimum is 1 weighing.

Ex:
Weigh ABCD . If ABCD=80, then "E" is the ball. If ABCD=78, then weigh AB.
If AB=40, then weigh C. If C=20 , D is the ball (and if C=18...)
If AB=38, then weigh A. If A=20, B is the ball (and if A=18...)

:smile:

Good, but I didn't say that you can't add a ball to bag.
 
Werg22 said:
Good, but I didn't say that you can't add a ball to bag.
Well,in this case, 2 weighings will be the minimum necessary to ever determine the bag.
Put 1 ball "A" into the bag "B" , and 1 ball "C" into the bag "D".
Weigh the bags "B" + "D".
If B+D=440 then "E" is the bag. If not, weigh bag "B" .
Now, if B+D=438 and B=220 , then "C" is the bag.
If B+D=420 and B=220 , then "D" is the bag.
Etc...
:smile:
 
Note: On the new skins, the color tag for spoilers is #e9e9e9 or #black (depending on browser...I think).

Also, do not quote spoiler posts.
 

Similar threads

  • · Replies 20 ·
Replies
20
Views
2K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
3
Views
3K
  • · Replies 9 ·
Replies
9
Views
5K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 3 ·
Replies
3
Views
11K
  • · Replies 62 ·
3
Replies
62
Views
12K