• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 05:15
CEST 11:15
KST 18:15
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
[ASL20] Ro24 Preview Pt2: Take-Off7[ASL20] Ro24 Preview Pt1: Runway132v2 & SC: Evo Complete: Weekend Double Feature4Team Liquid Map Contest #21 - Presented by Monster Energy9uThermal's 2v2 Tour: $15,000 Main Event18
Community News
Weekly Cups (Aug 18-24): herO dethrones MaxPax6Maestros of The Game—$20k event w/ live finals in Paris32Weekly Cups (Aug 11-17): MaxPax triples again!13Weekly Cups (Aug 4-10): MaxPax wins a triple6SC2's Safe House 2 - October 18 & 195
StarCraft 2
General
#1: Maru - Greatest Players of All Time Geoff 'iNcontroL' Robinson has passed away #2: Serral - Greatest Players of All Time I hope balance council is prepping final balance Aligulac - Europe takes the podium
Tourneys
Esports World Cup 2025 Maestros of The Game—$20k event w/ live finals in Paris Sparkling Tuna Cup - Weekly Open Tournament WardiTV Mondays RSL: Revival, a new crowdfunded tournament series
Strategy
Custom Maps
External Content
Mutation # 488 What Goes Around Mutation # 487 Think Fast Mutation # 486 Watch the Skies Mutation # 485 Death from Below
Brood War
General
No Rain in ASL20? BSL Polish World Championship 2025 20-21 September BGH Auto Balance -> http://bghmmr.eu/ ASL Season 20 Ro24 Groups Flash On His 2010 "God" Form, Mind Games, vs JD
Tourneys
[ASL20] Ro24 Group E [ASL20] Ro24 Group F [Megathread] Daily Proleagues [IPSL] CSLAN Review and CSLPRO Reimagined!
Strategy
Muta micro map competition Simple Questions, Simple Answers Fighting Spirit mining rates [G] Mineral Boosting
Other Games
General Games
Stormgate/Frost Giant Megathread Nintendo Switch Thread General RTS Discussion Thread Dawn of War IV Path of Exile
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine The year 2050 European Politico-economics QA Mega-thread
Fan Clubs
INnoVation Fan Club SKT1 Classic Fan Club!
Media & Entertainment
Anime Discussion Thread Movie Discussion! [Manga] One Piece [\m/] Heavy Metal Thread
Sports
2024 - 2026 Football Thread Formula 1 Discussion TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread High temperatures on bridge(s) Gtx660 graphics card replacement
TL Community
The Automated Ban List TeamLiquid Team Shirt On Sale
Blogs
RTS Design in Hypercoven
a11
Evil Gacha Games and the…
ffswowsucks
Breaking the Meta: Non-Stand…
TrAiDoS
INDEPENDIENTE LA CTM
XenOsky
[Girl blog} My fema…
artosisisthebest
Sharpening the Filtration…
frozenclaw
Customize Sidebar...

Website Feedback

Closed Threads



Active: 3087 users

The fake coin problem

Blogs > Byo
Post a Reply
Normal
Byo
Profile Blog Joined July 2007
Canada207 Posts
April 23 2009 23:59 GMT
#1
here's a more concrete problem compared to the first entry. Though its still more logical than mathamatical.

You are given 12 identical coins, and one weight scale. The weight scale is only able to identify if side A is heavier or lighter than side B. You are able to put any number of coins on either side. Among the 12 identical coins is 1 fake coin, whose weight is different but whither it is heavier or not is unknown. The task is to use the scale the least number of times to determine which coin is fake. You will probably have to name the coins A-L for clarity.

vAltyR
Profile Blog Joined July 2008
United States581 Posts
April 24 2009 00:06 GMT
#2
+ Show Spoiler +
Should be seven times. Weigh two coins at a time, so that's six times. One of those will produce an imbalance. Take one of the coins from the imbalanced result and weigh it against a different coin. If there is an imbalance again, that's the fake coin. If it's balanced, the other coin from the imbalance is the fake.
내 호버크라프트는 장어로 가득 차 있어요
TheYango
Profile Joined September 2008
United States47024 Posts
Last Edited: 2009-04-24 00:09:56
April 24 2009 00:08 GMT
#3
+ Show Spoiler +
Put 6 coins on each side of the scale. One side will be lighter, and one will be heavier. Take all the coins off, and put 3 on each side from the set of 6 coins that were on the lighter side. If the piles weigh the same, then the fake is heavier than normal. If they're different, then the fake is lighter than normal.

If the fake is lighter than normal, take the lighter of the 2 piles you just weighed. Compare any 2 of those 3 on the scale. If they weigh the same, the third one is the fake. If they're different, the lighter one is the fake.

If you found out the fake is heavier than normal, then split the heavier pile from the original weighing into piles of 3 and compare them. Take the heavier of the 2, and weigh any 2 of those 3. If they weigh the same, the third one is the fake. If they're different, the heavier one is the fake.

Thats three weighings if the fake is lighter than normal, and four if the fake is heavier than normal.
Moderator
Dave[9]
Profile Blog Joined October 2003
United States2365 Posts
April 24 2009 00:10 GMT
#4
you otta balance two at a time, so if C1=C2 then they are identical and can be put aside, when Cn does not equal Cm where m=n+1 then you know you have the fake coin.

So at most it will take 7 times.
http://www.teamliquid.net/forum/viewmessage.php?topic_id=104154&currentpage=316#6317
SpiritoftheTunA
Profile Blog Joined August 2006
United States20903 Posts
Last Edited: 2009-04-24 00:16:29
April 24 2009 00:11 GMT
#5
+ Show Spoiler +
ABCDEF vs GHIJKL (1)

one will turn up heavier, say its the abc group

ABC vs DEF (2)

if one doesn't turn up heavier, then weigh other set

GHI vs JKL (3)

one of these will turn up lighter, weigh each of them 1 by 1 against a coin from the ABCDEF set, whichever turns up lighter is correct

J v A (4)

K v A (5)

L v A (6)


EDIT strikeout part was stupid but yeah up until then i had theyango's method

max by this method is 6
posting on liquid sites in current year
vAltyR
Profile Blog Joined July 2008
United States581 Posts
Last Edited: 2009-04-24 00:13:57
April 24 2009 00:12 GMT
#6
On April 24 2009 09:08 TheYango wrote:
+ Show Spoiler +
Put 6 coins on each side of the scale. One side will be lighter, and one will be heavier. Take all the coins off, and put 3 on each side from the set of 6 coins that were on the lighter side. If the piles weigh the same, then the fake is heavier than normal. If they're different, then the fake is lighter than normal.

If the fake is lighter than normal, take the lighter of the 2 piles you just weighed. Compare any 2 of those 3 on the scale. If they weigh the same, the third one is the fake. If they're different, the lighter one is the fake.

If you found out the fake is heavier than normal, then split the heavier pile from the original weighing into piles of 3 and compare them. Take the heavier of the 2, and weigh any 2 of those 3. If they weigh the same, the third one is the fake. If they're different, the heavier one is the fake.

Thats three weighings if the fake is lighter than normal, and four if the fake is heavier than normal.


Ouch. Owned. >_<;

On April 24 2009 09:11 SpiritoftheTunA wrote:
+ Show Spoiler +
ABCDEF vs GHIJKL (1)

one will turn up heavier, say its the abc group

ABC vs DEF (2)

if one doesn't turn up heavier, then weigh other set

GHI vs JKL (3)

one of these will turn up lighter, weigh each of them 1 by 1 against a coin from the ABCDEF set, whichever turns up lighter is correct

J v A (4)

K v A (5)

L v A (6)

max by this method is 6


+ Show Spoiler +
Actually, max is 4. Read TheYango's post to find out why.
내 호버크라프트는 장어로 가득 차 있어요
FirstProbe
Profile Joined June 2004
1206 Posts
Last Edited: 2009-04-24 00:16:00
April 24 2009 00:13 GMT
#7
Break it up so that you're weighing 3 coins against 3 coins.
If both sets weigh the same, then repeat the process. This will leave you with one set of coins weighing more than the other.
Take one of those sets in which there is a discrepancy, and weigh it against another set. If it weighs the same, then the other set is the one with the fake coin. If they do not weight the same, then the fake coin is in the set that you have re-tested.
Following that, take the 3 coins that weighed in lighter, and weigh one against another. You'll either have your answer there, or have concluded that the coin not weighed is the lightest.
This should take you 4 attempts.
edit: or 3 attempts if you are more fortunate.
Byo
Profile Blog Joined July 2007
Canada207 Posts
April 24 2009 00:15 GMT
#8
actually, optimum method can find the result in 3 weighs regardless of heavier or lighter....
goldrush
Profile Blog Joined June 2004
Canada709 Posts
April 24 2009 00:17 GMT
#9
+ Show Spoiler +


Split it up into two groups of six. Weight it. One group will be heavier than the other. (A-F) (G-L) (#1)

Take one group of six. Split it into two groups of three. If they are identical weight, then use the other group of six for the next step. If they are not of identical weight, then use this group for the next step. (#2) Say that (A-C) (D-F) are of identical weight, and (G-I) and (J-L) are not.

Weight (G-I) against (A-C). (#3) If they are equal weight, then use the group (J-L) for the next step. If not, then use the group (G-I) for the next step.

Choose two random coins (say G and H if G-I was used from the previous step) from that group and weigh them from each other. (#4) If they are equal, then the one that remains (I) is the odd one out. If not, then weigh one of them (say, G) against coin A. (#5) If they are equal, then the other one (H) is the odd one out. If they are not, then G is the odd one out.

Steps 4-5 can probably be optimized though. =/


Deleted User 31060
Profile Blog Joined September 2007
3788 Posts
April 24 2009 00:17 GMT
#10
Compare ABCD with EFGH. If same, compare IJ with AB. If same, compare A with K. If same, the coin is L (if different, coin is K)

If IJ is different than AB, compare A with I. If same, the coin is J (if different, coin is I)

If ABCD is different with EFGH, compare ABCD with IJKL. If ABCD and IJKL are the same, compare AB with EF. If same, compare A with G. If same, the coin is H (if different, coin is G)

If EF is different than AB, compare A with E. If same, the coin is F (if different, coin is E)

If ABCD and IJKL are different, compare AB with EF. If same, compare A with E. If same, the coin is B (if different, coin is A)

If EF is different than AB, compare C with E. If same, the coin is D (if different, coin is C)



I think that takes care of all possibilities in 4 tries
Peaked at C- on ICCUP and proud of it! @Sunyveil
Bebop Berserker
Profile Joined April 2009
United States246 Posts
April 24 2009 00:19 GMT
#11

On April 24 2009 09:08 TheYango wrote:
+ Show Spoiler +
Put 6 coins on each side of the scale. One side will be lighter, and one will be heavier. Take all the coins off, and put 3 on each side from the set of 6 coins that were on the lighter side. If the piles weigh the same, then the fake is heavier than normal. If they're different, then the fake is lighter than normal.

If the fake is lighter than normal, take the lighter of the 2 piles you just weighed. Compare any 2 of those 3 on the scale. If they weigh the same, the third one is the fake. If they're different, the lighter one is the fake.

If you found out the fake is heavier than normal, then split the heavier pile from the original weighing into piles of 3 and compare them. Take the heavier of the 2, and weigh any 2 of those 3. If they weigh the same, the third one is the fake. If they're different, the heavier one is the fake.

Thats three weighings if the fake is lighter than normal, and four if the fake is heavier than normal.


Nice. Mine came out to be four/four but this seems right. I was just being stupid.(go figure)
Whatever happens, happens.
TheYango
Profile Joined September 2008
United States47024 Posts
Last Edited: 2009-04-24 00:25:50
April 24 2009 00:22 GMT
#12
On April 24 2009 09:15 Byo wrote:
actually, optimum method can find the result in 3 weighs regardless of heavier or lighter....

How about this:
+ Show Spoiler +

Coins A-L.
Weigh ABCD v EFGH and ABCD v IJKL.
If ABCD is the same as either, the other 4 contain the fake and you know if the fake is lighter/heavier by whether that pile is lighter/heavier (e.g. if ABCD = EFGH and ABCD > IJKL, then IJKL has the fake and the fake is lighter). If ABCD is different, then ABCD contains the fake, and you know if the fake is lighter/heaver by whether ABCD is lighter/heaver than the other two.

Call the pile with the fake now PQRS.
Weigh PQ v RS, choose the one you know has the fake from whether the fake is heavier/lighter as determined above, and weigh those. The fake is lighter/heavier as determined above.

3 weighs every time.
EDIT: wow, I can't count. Will figure out in a bit.
Moderator
SpiritoftheTunA
Profile Blog Joined August 2006
United States20903 Posts
April 24 2009 00:23 GMT
#13
On April 24 2009 09:22 TheYango wrote:
Show nested quote +
On April 24 2009 09:15 Byo wrote:
actually, optimum method can find the result in 3 weighs regardless of heavier or lighter....

How about this:
+ Show Spoiler +

Coins A-L.
Weigh ABCD v EFGH and ABCD v IJKL.
If ABCD is the same as either, the other 4 contain the fake and you know if the fake is lighter/heavier by whether that pile is lighter/heavier (e.g. if ABCD = EFGH and ABCD > IJKL, then IJKL has the fake and the fake is lighter). If ABCD is different, then ABCD contains the fake, and you know if the fake is lighter/heaver by whether ABCD is lighter/heaver than the other two.

Call the pile with the fake now PQRS.
Weigh PQ v RS, choose the one you know has the fake from the fake weight determined above, and weigh those. The fake is lighter/heavier as determined above.

3 weighs every time.

i count 4 man
posting on liquid sites in current year
TheYango
Profile Joined September 2008
United States47024 Posts
April 24 2009 00:24 GMT
#14
On April 24 2009 09:23 SpiritoftheTunA wrote:
Show nested quote +
On April 24 2009 09:22 TheYango wrote:
On April 24 2009 09:15 Byo wrote:
actually, optimum method can find the result in 3 weighs regardless of heavier or lighter....

How about this:
+ Show Spoiler +

Coins A-L.
Weigh ABCD v EFGH and ABCD v IJKL.
If ABCD is the same as either, the other 4 contain the fake and you know if the fake is lighter/heavier by whether that pile is lighter/heavier (e.g. if ABCD = EFGH and ABCD > IJKL, then IJKL has the fake and the fake is lighter). If ABCD is different, then ABCD contains the fake, and you know if the fake is lighter/heaver by whether ABCD is lighter/heaver than the other two.

Call the pile with the fake now PQRS.
Weigh PQ v RS, choose the one you know has the fake from the fake weight determined above, and weigh those. The fake is lighter/heavier as determined above.

3 weighs every time.

i count 4 man

Wow I'm dumb.
Edit in a bit.
Moderator
SpiritoftheTunA
Profile Blog Joined August 2006
United States20903 Posts
April 24 2009 00:25 GMT
#15
you'd probably need to mix up the groups across weighings
posting on liquid sites in current year
goldrush
Profile Blog Joined June 2004
Canada709 Posts
Last Edited: 2009-04-24 00:34:21
April 24 2009 00:29 GMT
#16
Maybe this...

+ Show Spoiler +


(ABCDEF) versus (GHIJKL)
(ABCGHI) versus (DEFJKL)

Find which group of three is heavier or lighter.

Take two from the group of three, measure. If equal, odd one out. If not equal, you know whether the odd one is supposed to be lighter/heavier and that one is it.



edit: nope, nvm
TheYango
Profile Joined September 2008
United States47024 Posts
April 24 2009 00:31 GMT
#17
On April 24 2009 09:29 goldrush wrote:
Second try, I think I got it.

+ Show Spoiler +


(ABCDEF) versus (GHIJKL)
(ABCGHI) versus (DEFJKL)

Find which group of three is heavier or lighter.

Take two from the group of three, measure. If equal, odd one out. If not equal, you know whether the odd one is supposed to be lighter/heavier and that one is it.



edit: or not

Yeah, your first 2 weighings don't guarantee finding which group is heavier.
Moderator
OmgIRok
Profile Blog Joined June 2008
Taiwan2699 Posts
April 24 2009 00:33 GMT
#18


1a) weigh 5 coins on each scale, if there is an imbalance, then move on to step 2a
1b) same as 1a except they both weigh the same
2b) weigh the remaining 2 coins

2a) keep taking out 1 coin from both piles until the weight is the same,
3) weigh the 2 coins that you took out from the pile before it made it even weight
"Wanna join my [combo] clan?" "We play turret d competitively"
TheYango
Profile Joined September 2008
United States47024 Posts
Last Edited: 2009-04-24 00:41:36
April 24 2009 00:35 GMT
#19
On April 24 2009 09:33 OmgIRok wrote:
3) weigh the 2 coins that you took out from the pile before it made it even weight

How does this determine the fake? None of your previous steps ascertain whether the fake is lighter or heavier.

Edit: However, weighing one of those two with a third coin does. Still iffy on whether taking coins out constitutes a separate weighing, but this at least works.
Moderator
SpiritoftheTunA
Profile Blog Joined August 2006
United States20903 Posts
April 24 2009 00:36 GMT
#20
On April 24 2009 09:33 OmgIRok wrote:


1a) weigh 5 coins on each scale, if there is an imbalance, then move on to step 2a
1b) same as 1a except they both weigh the same
2b) weigh the remaining 2 coins

2a) keep taking out 1 coin from both piles until the weight is the same,
3) weigh the 2 coins that you took out from the pile before it made it even weight

yeah the existence of 2a means you can't guarantee < 3

try again mang
posting on liquid sites in current year
goldrush
Profile Blog Joined June 2004
Canada709 Posts
Last Edited: 2009-04-24 00:39:19
April 24 2009 00:37 GMT
#21
(ABCDEF) versus (GHIJKL)

(ABGH versus CDIJ)

This time, look at the pairs?

ex: ABCDEF is heavier, ABGH is heavier. Then the odd one out is one of AB, measure.

DAMNIT there are always the lighter-lighter options which increases the number of required weighs, doesn't work.
KwarK
Profile Blog Joined July 2006
United States42864 Posts
April 24 2009 00:37 GMT
#22
On April 24 2009 09:33 OmgIRok wrote:


1a) weigh 5 coins on each scale, if there is an imbalance, then move on to step 2a
1b) same as 1a except they both weigh the same
2b) weigh the remaining 2 coins

2a) keep taking out 1 coin from both piles until the weight is the same,
3) weigh the 2 coins that you took out from the pile before it made it even weight

2b tells you one coin is heavier than the other. Which is the fake?
ModeratorThe angels have the phone box
SpiritoftheTunA
Profile Blog Joined August 2006
United States20903 Posts
April 24 2009 00:39 GMT
#23
On April 24 2009 09:37 goldrush wrote:
(ABCDEF) versus (GHIJKL)

(ABGH versus CDIJ)

This time, look at the pairs?

ex: ABCDEF is heavier, ABGH is heavier. Then the odd one out is one of AB, measure.

in your example, J could be lighter and could be the fake
posting on liquid sites in current year
Tyxiquale
Profile Joined September 2008
Australia424 Posts
Last Edited: 2009-04-24 00:58:08
April 24 2009 00:55 GMT
#24
man, I can't believe all these replies, and not a single person has got it yet. Okay, this is the answer.

1. Weigh 3 balls against 3 balls. If they are the same, move to 2a, if they are different, 2b. You now have the information of 6 balls that are normal.

2a) You take 3 balls from one end off the scale, and grab 3 "unidentified" balls from your other pile, and weigh them. If different to 3 normal balls, then it must be in that group of 3. If they are the same, then the mystery ball must be in the final 3 balls. MOST IMPORTANTLY - you know whether the ball is heavier or lighter.

2b) You take 3 of these balls and weigh it against 3 identified balls. If they are the same, the mystery ball must be in the other 3 balls that you weighed in your first go. If not, they are in the pile you just measured. AND you know whether the ball is heavier or lighter.

3. Regardless of which method you have taken, you have now identified 3 balls, of which 1 of them is the mystery ball. AND most importantly, the information of whether it is heavier or lighter.

As such, the final weigh would be 1 ball against another in your group of 3. The rest is trivial.

That’s it folks.

The answer is 3 regardless of whether it is heavier or lighter.

Amen.
Dumb people don't know that they're dumb.
Crunchums
Profile Blog Joined December 2008
United States11144 Posts
Last Edited: 2009-04-24 01:02:17
April 24 2009 00:57 GMT
#25
Not sure what you mean by the least number of times - do you mean on average or do you mean the best worst case scenario? Here are two algorithms.
I can get a worst case of 4 with the second one:
+ Show Spoiler +

Add one coin to each side, then check if each side weighs the same. Repeat this until the two sides don't weigh the same or until you weigh 5 coins against 5 coins and they still weigh the same. Once that happens, set aside the two most recently added coins or the two remaining coins if there are only two left and remove all the coins from the scale. Pick one of the two coins you set aside and weigh it against another coin that's not the other coin you set aside. If these two coins weigh the same, the fake coin is the other coin you set aside. If they do not it is the coin that you had set aside that is now on the weight scale. (This algorithm will also work with the same efficiency if you instead start with all the coins on the scale and remove them two at a time, one from each side, until it changes from not the same weight to the same weight and not measure if there are two left.)
# of Measurements:
Maximum - 6
Minimum - 2
Average - 3.3333...

Put 3 coins on side A and 3 coins on side B and measure.
If the two sides are the same weight:
Add one coin to each side and measure. If the two sides are still the same weight, repeat this step unless there are now 10 coins on the scale, in which case set aside the 2 remaining coins. If the two sides are no longer the same weight, set aside the two coins you just added to each side.
If the two sides are not the same weight:
Remove one coin from each side and measure. If the two sides are still not the same weight, repeat this step unless there are now 2 coins on the scale, in which case set those 2 coins aside. If the two sides are now the same weight, set aside the two coins you just removed from each side.
Remove all coins from the scale. Pick one of the two coins you set aside and weigh it against another coin that's not the other coin you set aside. If these two coins weigh the same, the fake coin is the other coin you set aside. If they do not it is the coin that you had set aside that is now on the weight scale.

# of Measurements:
Maximum - 4
Minimum - 3
Average - complicated
brood war for life, brood war forever
SpiritoftheTunA
Profile Blog Joined August 2006
United States20903 Posts
April 24 2009 00:58 GMT
#26
tyxiquale, use ABC DEF GHI JKL notation please, i think there's a flaw in your 2b but it's too ambiguous for me to evaluate
posting on liquid sites in current year
TheYango
Profile Joined September 2008
United States47024 Posts
Last Edited: 2009-04-24 01:00:05
April 24 2009 00:58 GMT
#27
On April 24 2009 09:55 Tyxiquale wrote:
2a) You take 3 balls from one end off the scale, and grab 3 "unidentified" balls from your other pile, and weigh them. If different to 3 normal balls, then it must be in that group of 3. If they are the same, then the mystery ball must be in the final 3 balls. MOST IMPORTANTLY - you know whether the ball is heavier or lighter.

Uhh... HOW?

ABC = DEF
ABC = GHI
How does that tell you whether the fake is lighter or heavier?
Moderator
Byo
Profile Blog Joined July 2007
Canada207 Posts
April 24 2009 00:58 GMT
#28
hint+ Show Spoiler +
in the optimum solution, there is a case where the fake coin is not weigh'd
SpiritoftheTunA
Profile Blog Joined August 2006
United States20903 Posts
Last Edited: 2009-04-24 00:59:59
April 24 2009 00:59 GMT
#29
On April 24 2009 09:58 TheYango wrote:
Show nested quote +
On April 24 2009 09:55 Tyxiquale wrote:
2a) You take 3 balls from one end off the scale, and grab 3 "unidentified" balls from your other pile, and weigh them. If they are the same, then the mystery ball must be in the final 3 balls. AND you know whether the ball is heavier or lighter.

Uhh... HOW?

ABC = DEF
ABC = GHI
How does that tell you whether the fake is lighter or heavier?

that flaw too

what a joke lol
posting on liquid sites in current year
Tyxiquale
Profile Joined September 2008
Australia424 Posts
April 24 2009 01:00 GMT
#30
On April 24 2009 09:58 SpiritoftheTunA wrote:
tyxiquale, use ABC DEF GHI JKL notation please, i think there's a flaw in your 2b but it's too ambiguous for me to evaluate


Sorry for not using that notation, cos I cbf..

but there is no flaw. re-read it again. Read between the lines of what I skipped cos I thought it was too obvious.

Dumb people don't know that they're dumb.
SpiritoftheTunA
Profile Blog Joined August 2006
United States20903 Posts
April 24 2009 01:01 GMT
#31
On April 24 2009 10:00 Tyxiquale wrote:
Show nested quote +
On April 24 2009 09:58 SpiritoftheTunA wrote:
tyxiquale, use ABC DEF GHI JKL notation please, i think there's a flaw in your 2b but it's too ambiguous for me to evaluate


Sorry for not using that notation, cos I cbf..

but there is no flaw. re-read it again. Read between the lines of what I skipped cos I thought it was too obvious.


your signature is especially ironic, even more so since you used "their" instead of "they're"
posting on liquid sites in current year
TheYango
Profile Joined September 2008
United States47024 Posts
April 24 2009 01:03 GMT
#32
On April 24 2009 10:00 Tyxiquale wrote:
Show nested quote +
On April 24 2009 09:58 SpiritoftheTunA wrote:
tyxiquale, use ABC DEF GHI JKL notation please, i think there's a flaw in your 2b but it's too ambiguous for me to evaluate


Sorry for not using that notation, cos I cbf..

but there is no flaw. re-read it again. Read between the lines of what I skipped cos I thought it was too obvious.


Apparently not, because Byo would have recognized your answer as correct if it were. -_-

You still haven't addressed the situation I raised.
Moderator
ghostWriter
Profile Blog Joined January 2009
United States3302 Posts
April 24 2009 01:04 GMT
#33
On April 24 2009 10:01 SpiritoftheTunA wrote:
Show nested quote +
On April 24 2009 10:00 Tyxiquale wrote:
On April 24 2009 09:58 SpiritoftheTunA wrote:
tyxiquale, use ABC DEF GHI JKL notation please, i think there's a flaw in your 2b but it's too ambiguous for me to evaluate


Sorry for not using that notation, cos I cbf..

but there is no flaw. re-read it again. Read between the lines of what I skipped cos I thought it was too obvious.


your signature is especially ironic, even more so since you used "their" instead of "they're"


I'm pretty sure it was done intentionally so that some high school student with a misguided sense of superiority can try to call him out on it.
Sullifam
sigma_x
Profile Joined March 2008
Australia285 Posts
Last Edited: 2009-04-24 01:06:17
April 24 2009 01:05 GMT
#34
tyx is correct. The final weight of 1 ball against any of the other (two in your group) determines the solution.
TheYango
Profile Joined September 2008
United States47024 Posts
April 24 2009 01:09 GMT
#35
On April 24 2009 10:05 sigma_x wrote:
tyx is correct. The final weight of 1 ball against any of the other (two in your group) determines the solution.

Ok, hold on. I'll carry out an example using his procedure. I follow it as well as i can.
Balls are labeled A-L.

Suppose you weigh ABC against DEF. They are the same.

Step 2a says you then take GHI and weigh it against ABC. They are also the same. This says that the fake is in JKL. However, you don't know whether the fake is heavier or lighter because you've weighed 9 things that are all the same.

Step 3 says weigh J with K. They are different. You still don't know which is fake without making another measurement.
Moderator
Crunchums
Profile Blog Joined December 2008
United States11144 Posts
Last Edited: 2009-04-24 01:13:33
April 24 2009 01:09 GMT
#36
tyx is correct he just didn't explain very well
edit: nevermind he's just got another way to get 4
brood war for life, brood war forever
TheYango
Profile Joined September 2008
United States47024 Posts
Last Edited: 2009-04-24 01:11:33
April 24 2009 01:10 GMT
#37
On April 24 2009 10:09 Crunchums wrote:
tyx is correct he just didn't explain very well

Then explain it better, or tell me how the situation I raised is resolvable. I followed his steps, and in a worst-case scenario, it requires one more measurement.

For God's sake, people, if someone doesn't understand, then explain WHY they're wrong, instead of just saying "tyx is correct, read more carefully."
Moderator
SpiritoftheTunA
Profile Blog Joined August 2006
United States20903 Posts
April 24 2009 01:11 GMT
#38
On April 24 2009 10:04 ghostWriter wrote:
Show nested quote +
On April 24 2009 10:01 SpiritoftheTunA wrote:
On April 24 2009 10:00 Tyxiquale wrote:
On April 24 2009 09:58 SpiritoftheTunA wrote:
tyxiquale, use ABC DEF GHI JKL notation please, i think there's a flaw in your 2b but it's too ambiguous for me to evaluate


Sorry for not using that notation, cos I cbf..

but there is no flaw. re-read it again. Read between the lines of what I skipped cos I thought it was too obvious.


your signature is especially ironic, even more so since you used "their" instead of "they're"


I'm pretty sure it was done intentionally so that some high school student with a misguided sense of superiority can try to call him out on it.

it's not much of a trap like affect/effect would be

why are you defending this clown
posting on liquid sites in current year
Byo
Profile Blog Joined July 2007
Canada207 Posts
Last Edited: 2009-04-24 01:19:12
April 24 2009 01:12 GMT
#39
tyx,

if weight 1 is same, and 2a is same....... and in 3, the weight are different, then which ball is the fake one?

Edit:

hint:

+ Show Spoiler +
its significant whither A is > B or A is < B
Gliche
Profile Blog Joined August 2008
United States811 Posts
Last Edited: 2009-04-24 01:18:12
April 24 2009 01:15 GMT
#40
edit: damn missed that part
KT fighting~!! | Designing things is fun!
SpiritoftheTunA
Profile Blog Joined August 2006
United States20903 Posts
Last Edited: 2009-04-24 01:17:47
April 24 2009 01:16 GMT
#41
On April 24 2009 10:15 Gliche wrote:
tyx's way is right. It's just that is does NOT always tell you which if it's heavier or light, but that's not required according to the op.

since byo didn't say that it's solved yet.. so there must be a 2nd solution?

no, read the problem theyango and byo brought up

if you dont know whether it's heavier or lighter within its own group, you can't find it in one more step
posting on liquid sites in current year
FirstProbe
Profile Joined June 2004
1206 Posts
Last Edited: 2009-04-24 01:21:51
April 24 2009 01:20 GMT
#42
tyx just used *a variation on my method.
3 is not a guaranteed maximum.
Severedevil
Profile Blog Joined April 2009
United States4839 Posts
Last Edited: 2009-04-24 01:26:53
April 24 2009 01:25 GMT
#43
tyx's method is not optimal.

Btw, if you do it cleverly enough, you can specify which balls to weigh against which before you get the results of any of your weighings.
My strategy is to fork people.
FirstProbe
Profile Joined June 2004
1206 Posts
Last Edited: 2009-04-24 01:26:46
April 24 2009 01:26 GMT
#44
For example, set A, B, C, D
if I weigh A against B
and both weigh the same
then I weigh A against C
if both weigh the same
then set D is the one with the fake in it.
At this stage you've weighed twice.
Now in set D, if I weigh D1 vs D2, and if there is a weight discrepancy, then either D1 or D2 is the fake. (weighed 3 times). In this situation you have to weigh D1 against D3 to get an answer (4th weigh).
If they weigh the same then sure, you have the answer in 3 goes.

Of course you can argue that if
A is lighter than C, then the fake coin is heavier.
In which situation, you can get the answer in 3.
But so can the other such displayed answers. So in this situation, the maximum is still 4.
nortorius
Profile Joined April 2003
Canada1210 Posts
April 24 2009 01:28 GMT
#45
1.) Place ABCDEF v GHIJKL on the scale. Remove a coin from each side of the scale until both sides are equal in weight.

2.) One of the last two coins removed from part one is the fake coin. So, you weigh each coin against one of the known real coins to find out which is fake
JeeJee
Profile Blog Joined July 2003
Canada5652 Posts
Last Edited: 2009-04-24 01:34:50
April 24 2009 01:34 GMT
#46
so.. max is 3 isn't it?
i'm too lazy to think it through but this question has appeared like a gazillion times before.

someone on tl even wrote a formula that gives you maximum # of weightings in a generalized case of n coins
(\o/)  If you want it, you find a way. Otherwise you find excuses. No exceptions.
 /_\   aka Shinbi (requesting a name change since 27/05/09 ☺)
Byo
Profile Blog Joined July 2007
Canada207 Posts
Last Edited: 2009-04-24 01:38:38
April 24 2009 01:36 GMT
#47
LOL is that true, I guess I wasn't around long enough

Not so certain you can do set weighting before knowing the results....... i could be wrong.
Incognitodies
Profile Joined April 2008
United Kingdom184 Posts
April 24 2009 01:51 GMT
#48
On April 24 2009 10:36 Byo wrote:
LOL is that true, I guess I wasn't around long enough

Not so certain you can do set weighting before knowing the results....... i could be wrong.

You can do set weighting before knowing the results

It's pretty long winded to type out though
zobz
Profile Joined November 2005
Canada2175 Posts
Last Edited: 2009-04-24 02:12:01
April 24 2009 01:52 GMT
#49
+ Show Spoiler +
Three weighings.
1.. Weigh one group of 6 coins against the other 6 coins.
2.. Whichever group of 6 is heavier, measure 3 from that group against the other three. If these two groups of 3 weigh unequally, then the special coin must be heavier (since by the unequallity remaining within this group of 6 coins, the coin must be in this group, and since it is the heavier group of 6, the coin must be heavy). If the two groups of three in the heavier group of 6 weigh the same, the coin must be lighter, and in the other group of 6.
3.. If the special coin is in the lighter group of 6, weigh any 2 coins against each other from the lighter group of 3 within that group of 6. If the coin is in the heavier group of 6, weigh any 2 coins from the heavier group of 3 within that group of 6.
If the two coins weigh equally then the remaining coin from the relevant group of 3 is the coin sought. If they weigh unequally then the special coin is the heavier one if you are weighing coins out of the heavier group of 6, or the lighter coin if you're weighing coins from the lighter group of 6.
No i'm wrong. Fuck.
"That's not gonna be good for business." "That's not gonna be good for anybody."
Slithe
Profile Blog Joined February 2007
United States985 Posts
April 24 2009 02:01 GMT
#50
+ Show Spoiler +

3 Weighings:

EFGH vs IJKL
BFGK vs CDHL
CEHK vs ADGL

I think from the results of these 3 weighings you can always single out one of the coins to be the bad one.
TheYango
Profile Joined September 2008
United States47024 Posts
Last Edited: 2009-04-24 02:02:23
April 24 2009 02:02 GMT
#51
On April 24 2009 10:52 zobz wrote:
+ Show Spoiler +
Three weighings.
1.. Weigh one group of 6 coins against the other 6 coins.
2.. Whichever group of 6 is heavier, measure 3 from that group against the other three. If these two groups of 3 weigh unequally, then the special coin must be heavier (since by the unequallity remaining within this group of 6 coins, the coin must be in this group, and since it is the heavier group of 6, the coin must be heavy). If the two groups of three in the heavier group of 6 weigh the same, the coin must be lighter, and in the other group of 6.
3.. If the special coin is in the lighter group of 6, weigh any 2 coins against each other from the lighter group of 3 within that group of 6. If the coin is in the heavier group of 6, weigh any 2 coins from the heavier group of 3 within [that] group of 6.
If the two coins weigh equally then the remaining coin from the relevant group of 3 is the coin sought. If they weigh unequally then the special coin is the heavier one if you are weighing coins out of the heavier group of 6, or the lighter coin if you're weighing coins from the lighter group of 6.

+ Show Spoiler +
Lemme work this out in A-L notation, just to see if I understand you correctly.
ABCDEF v GHIJKL
Suppose ABCDEF is heavier. Weigh ABC v DEF. If they're unequal, then the heavier one contains the fake one, and one more measurement will find it.. If they weigh the same, then the fake coin is in GHIJKL.

Now here's where I stop understanding you. If the fake is in GHIJKL and GHIJKL is lighter, how do you find a group of 3 in there thats lighter without taking a measurement? You haven't weighed within GHIJKL yet, so you can't know which group of 3 is "heavier" or "lighter".
Moderator
Slithe
Profile Blog Joined February 2007
United States985 Posts
April 24 2009 02:05 GMT
#52
On April 24 2009 10:52 zobz wrote:
+ Show Spoiler +
Three weighings.
1.. Weigh one group of 6 coins against the other 6 coins.
2.. Whichever group of 6 is heavier, measure 3 from that group against the other three. If these two groups of 3 weigh unequally, then the special coin must be heavier (since by the unequallity remaining within this group of 6 coins, the coin must be in this group, and since it is the heavier group of 6, the coin must be heavy). If the two groups of three in the heavier group of 6 weigh the same, the coin must be lighter, and in the other group of 6.
3.. If the special coin is in the lighter group of 6, weigh any 2 coins against each other from the lighter group of 3 within that group of 6. If the coin is in the heavier group of 6, weigh any 2 coins from the heavier group of 3 within [that] group of 6.
If the two coins weigh equally then the remaining coin from the relevant group of 3 is the coin sought. If they weigh unequally then the special coin is the heavier one if you are weighing coins out of the heavier group of 6, or the lighter coin if you're weighing coins from the lighter group of 6.


Unless I misread, I count 4 weighings if the coin is lighter.

A weighing to determine which group is heavier.
A weighing to determine if the coin is heavier or lighter.
A weighing to find the lighter group of 3 within the lighter group of 6.
A weighing to find the lighter coin from the group of 3.
TheYango
Profile Joined September 2008
United States47024 Posts
April 24 2009 02:14 GMT
#53
On April 24 2009 11:01 Slithe wrote:
+ Show Spoiler +

3 Weighings:

EFGH vs IJKL
BFGK vs CDHL
CEHK vs ADGL

I think from the results of these 3 weighings you can always single out one of the coins to be the bad one.

+ Show Spoiler +
This method runs into trouble, because I and J are indistinguishable. If the first measurement is unequal, and the second 2 are equal, I or J could be the fake. The following list gives the measurement results if each coin is the fake:
(E = equal, L = left is greater, R = right is greater)
A - EER
B - ELE
C - ERL
D - ERR
E - LEL
F - LLE
G - LLR
H - LRL
I - REE
J - REE
K - RLL

This could be the right way of thinking about it though. Props to you for that.
Moderator
Byo
Profile Blog Joined July 2007
Canada207 Posts
Last Edited: 2009-04-24 02:25:57
April 24 2009 02:19 GMT
#54
lol..

*edit i was too lazy to check all solutions.... perhaps all predetermined weights isn't optimum, i dunno

the solution i had was.....
+ Show Spoiler +

if abcd = efgh , i <> j, i <>k
if abcd > efgh , abe > cdf, a <> b
if abcd < efgh , abe > cdf, c <> d
TheYango
Profile Joined September 2008
United States47024 Posts
Last Edited: 2009-04-24 02:23:38
April 24 2009 02:19 GMT
#55
On April 24 2009 11:19 Byo wrote:
there its solved..... i learned something new too lol

?
Which solution solved it? Slithe's solution can't distinguish between I and J.

EDIT: was Slithe's your solution in a different combination?
Moderator
Slithe
Profile Blog Joined February 2007
United States985 Posts
April 24 2009 02:23 GMT
#56
On April 24 2009 11:14 TheYango wrote:
Show nested quote +
On April 24 2009 11:01 Slithe wrote:
+ Show Spoiler +

3 Weighings:

EFGH vs IJKL
BFGK vs CDHL
CEHK vs ADGL

I think from the results of these 3 weighings you can always single out one of the coins to be the bad one.

+ Show Spoiler +
This method runs into trouble, because I and J are indistinguishable. If the first measurement is unequal, and the second 2 are equal, I or J could be the fake. The following list gives the measurement results if each coin is the fake:
(E = equal, L = left is greater, R = right is greater)
A - EER
B - ELE
C - ERL
D - ERR
E - LEL
F - LLE
G - LLR
H - LRL
I - REE
J - REL
K - RLE

This could be the right way of thinking about it though. Props to you for that.


+ Show Spoiler +

Oh nice catch, I had a typo when converting my answer to letter format.

EFGH vs IJKL
BFGK vs CDHL
CEHJ vs ADGL

I may still have mistakes, so it would be good to verify.
TheYango
Profile Joined September 2008
United States47024 Posts
April 24 2009 02:26 GMT
#57
On April 24 2009 11:23 Slithe wrote:
+ Show Spoiler +

Oh nice catch, I had a typo when converting my answer to letter format.

EFGH vs IJKL
BFGK vs CDHL
CEHJ vs ADGL

I may still have mistakes, so it would be good to verify.

Looks good, it seems you edited the 3-measurement results that I listed, so it seems consistent now.

Again, props for this way of attacking the problem.
Moderator
520
Profile Blog Joined April 2009
United States2822 Posts
Last Edited: 2009-04-24 02:51:09
April 24 2009 02:45 GMT
#58
+ Show Spoiler +
12 coins problem, labeled ABCDEFGHIJKL
Boolean comparison operators operate on WEIGHT, not the side that goes up or down.
eg:
ABCD > EFGH means that ABCD is heavier and on the bottom side of the scale

First weighing: ABCD vs. EFGH
Case 1: ABCD = EFGH
--This means that the counterfeit is in IJKL - weight undetermined
Case 2: ABCD > EFGH
--Counterfeit is in one of the two groups - weight undetermined
Case 3: ABCD < EFGH
--Counterfeit is in one of the two groups - weight undetermined

Case 1, Second weighing (Coins were even): IJK vs. ABC
ABC is known to be a good group, IJK is suspect.
Case 1a: IJK = ABC
IJK must also be good.
--Counterfeit is L - weight undetermined
Case 1b: IJK > ABC
IJK is heavier.
--Counterfeit is in IJK and it is heavier
Case 1c: IJK < ABC
IJK is lighter.
--Counterfeit is in IJK and it is lighter

Case 2, Second weighing (Left side heavier): ABCE vs. DIJK
ABCD may be heavy, E may be light, IJK are guaranteed good.
Case 2a: ABCE = DIJK
All of the coins tested are good.
--Counterfeit is in FGH and it is lighter
Case 2b: ABCE > DIJK
Right side contains only good coins.
--Counterfeit is in ABC and it is heavier
Case 2c: ABCE < DIJK
3 good coins + 1 bad coin on either side.
--Counterfeit is D and it is heavier OR counterfeit is E and it is lighter

Case 3, Second weighing (Right side heavier): DFGH vs. EIJK
EFGH may be heavy, D may be light, IJK are guaranteed good.
Case 3a: DFGH = EIJK
All of the coins tested are good.
--Counterfeit is in ABC and it is lighter
Case 3b: DFGH > EIJK
Right side only contains good coins.
--Counterfeit is in FGH and it is heavier
Case 3c: DFGH < EIJK
3 good coins + 1 bad coin on either side.
--Counterfeit is E and it is heavier OR counterfeit is D and it is lighter

Case 1a, Third weighing (Counterfeit coin known, but not its weight, L): L vs. A
Case 1a1: L < A
--Counterfeit is L, L is lighter
Case 1a2: L > A
--Counterfeit is L, L is heavier

Case 2c, 3c, Third weighing (Counterfeit is between two coins, but possible weights known, D and E): D vs. A
A is known to be good, counterfeit could be either D or E.
Case 2c1: D = A
--Counterfeit is E, E is lighter
Case 2c2: D > A
--Counterfeit is D, D is heavier

Case 1b, 2b, 3b, Third weighing (Counterfeit is heavy and in a group of 3 XYZ): X vs. Y
Case 1b1: X = Y
--Counterfeit is Z, Z is heavier
Case 1b2: X > Y
--Counterfeit is X, X is heavier
Case 1b3: X < Y
--Counterfeit is Y, Y is heavier

Case 1c, 2a, 3a, Third weighing (Counterfeit is light and in a group of 3 XYZ): X vs. Y
Case 1c1: X = Y
--Counterfeit is Z, Z is lighter
Case 1c2: X > Y
--Counterfeit is Y, Y is lighter
Case 1c3: X < Y
--Counterfeit is X, X is lighter


EDIT: Aah, looks like I got beaten to the punch.
Writer
TheYango
Profile Joined September 2008
United States47024 Posts
April 24 2009 02:55 GMT
#59
On April 24 2009 11:45 p3numbra wrote:
+ Show Spoiler +
12 coins problem, labeled ABCDEFGHIJKL
Boolean comparison operators operate on WEIGHT, not the side that goes up or down.
eg:
ABCD > EFGH means that ABCD is heavier and on the bottom side of the scale

First weighing: ABCD vs. EFGH
Case 1: ABCD = EFGH
--This means that the counterfeit is in IJKL - weight undetermined
Case 2: ABCD > EFGH
--Counterfeit is in one of the two groups - weight undetermined
Case 3: ABCD < EFGH
--Counterfeit is in one of the two groups - weight undetermined

Case 1, Second weighing (Coins were even): IJK vs. ABC
ABC is known to be a good group, IJK is suspect.
Case 1a: IJK = ABC
IJK must also be good.
--Counterfeit is L - weight undetermined
Case 1b: IJK > ABC
IJK is heavier.
--Counterfeit is in IJK and it is heavier
Case 1c: IJK < ABC
IJK is lighter.
--Counterfeit is in IJK and it is lighter

Case 2, Second weighing (Left side heavier): ABCE vs. DIJK
ABCD may be heavy, E may be light, IJK are guaranteed good.
Case 2a: ABCE = DIJK
All of the coins tested are good.
--Counterfeit is in FGH and it is lighter
Case 2b: ABCE > DIJK
Right side contains only good coins.
--Counterfeit is in ABC and it is heavier
Case 2c: ABCE < DIJK
3 good coins + 1 bad coin on either side.
--Counterfeit is D and it is heavier OR counterfeit is E and it is lighter

Case 3, Second weighing (Right side heavier): DFGH vs. EIJK
EFGH may be heavy, D may be light, IJK are guaranteed good.
Case 3a: DFGH = EIJK
All of the coins tested are good.
--Counterfeit is in ABC and it is lighter
Case 3b: DFGH > EIJK
Right side only contains good coins.
--Counterfeit is in FGH and it is heavier
Case 3c: DFGH < EIJK
3 good coins + 1 bad coin on either side.
--Counterfeit is E and it is heavier OR counterfeit is D and it is lighter

Case 1a, Third weighing (Counterfeit coin known, but not its weight, L): L vs. A
Case 1a1: L < A
--Counterfeit is L, L is lighter
Case 1a2: L > A
--Counterfeit is L, L is heavier

Case 2c, 3c, Third weighing (Counterfeit is between two coins, but possible weights known, D and E): D vs. A
A is known to be good, counterfeit could be either D or E.
Case 2c1: D = A
--Counterfeit is E, E is lighter
Case 2c2: D > A
--Counterfeit is D, D is heavier

Case 1b, 2b, 3b, Third weighing (Counterfeit is heavy and in a group of 3 XYZ): X vs. Y
Case 1b1: X = Y
--Counterfeit is Z, Z is heavier
Case 1b2: X > Y
--Counterfeit is X, X is heavier
Case 1b3: X < Y
--Counterfeit is Y, Y is heavier

Case 1c, 2a, 3a, Third weighing (Counterfeit is light and in a group of 3 XYZ): X vs. Y
Case 1c1: X = Y
--Counterfeit is Z, Z is lighter
Case 1c2: X > Y
--Counterfeit is Y, Y is lighter
Case 1c3: X < Y
--Counterfeit is X, X is lighter


EDIT: Aah, looks like I got beaten to the punch.

Yeah that works. I still like Slithe's solution better. Its so much more elegant!
Moderator
520
Profile Blog Joined April 2009
United States2822 Posts
April 24 2009 02:57 GMT
#60
On April 24 2009 11:55 TheYango wrote:
Show nested quote +
On April 24 2009 11:45 p3numbra wrote:
+ Show Spoiler +
12 coins problem, labeled ABCDEFGHIJKL
Boolean comparison operators operate on WEIGHT, not the side that goes up or down.
eg:
ABCD > EFGH means that ABCD is heavier and on the bottom side of the scale

First weighing: ABCD vs. EFGH
Case 1: ABCD = EFGH
--This means that the counterfeit is in IJKL - weight undetermined
Case 2: ABCD > EFGH
--Counterfeit is in one of the two groups - weight undetermined
Case 3: ABCD < EFGH
--Counterfeit is in one of the two groups - weight undetermined

Case 1, Second weighing (Coins were even): IJK vs. ABC
ABC is known to be a good group, IJK is suspect.
Case 1a: IJK = ABC
IJK must also be good.
--Counterfeit is L - weight undetermined
Case 1b: IJK > ABC
IJK is heavier.
--Counterfeit is in IJK and it is heavier
Case 1c: IJK < ABC
IJK is lighter.
--Counterfeit is in IJK and it is lighter

Case 2, Second weighing (Left side heavier): ABCE vs. DIJK
ABCD may be heavy, E may be light, IJK are guaranteed good.
Case 2a: ABCE = DIJK
All of the coins tested are good.
--Counterfeit is in FGH and it is lighter
Case 2b: ABCE > DIJK
Right side contains only good coins.
--Counterfeit is in ABC and it is heavier
Case 2c: ABCE < DIJK
3 good coins + 1 bad coin on either side.
--Counterfeit is D and it is heavier OR counterfeit is E and it is lighter

Case 3, Second weighing (Right side heavier): DFGH vs. EIJK
EFGH may be heavy, D may be light, IJK are guaranteed good.
Case 3a: DFGH = EIJK
All of the coins tested are good.
--Counterfeit is in ABC and it is lighter
Case 3b: DFGH > EIJK
Right side only contains good coins.
--Counterfeit is in FGH and it is heavier
Case 3c: DFGH < EIJK
3 good coins + 1 bad coin on either side.
--Counterfeit is E and it is heavier OR counterfeit is D and it is lighter

Case 1a, Third weighing (Counterfeit coin known, but not its weight, L): L vs. A
Case 1a1: L < A
--Counterfeit is L, L is lighter
Case 1a2: L > A
--Counterfeit is L, L is heavier

Case 2c, 3c, Third weighing (Counterfeit is between two coins, but possible weights known, D and E): D vs. A
A is known to be good, counterfeit could be either D or E.
Case 2c1: D = A
--Counterfeit is E, E is lighter
Case 2c2: D > A
--Counterfeit is D, D is heavier

Case 1b, 2b, 3b, Third weighing (Counterfeit is heavy and in a group of 3 XYZ): X vs. Y
Case 1b1: X = Y
--Counterfeit is Z, Z is heavier
Case 1b2: X > Y
--Counterfeit is X, X is heavier
Case 1b3: X < Y
--Counterfeit is Y, Y is heavier

Case 1c, 2a, 3a, Third weighing (Counterfeit is light and in a group of 3 XYZ): X vs. Y
Case 1c1: X = Y
--Counterfeit is Z, Z is lighter
Case 1c2: X > Y
--Counterfeit is Y, Y is lighter
Case 1c3: X < Y
--Counterfeit is X, X is lighter


EDIT: Aah, looks like I got beaten to the punch.

Yeah that works. I still like Slithe's solution better. Its so much more elegant!

Actually, doesn't Slithe's say that it needs 4 weighings if the coin is lighter? Mine needs exactly 3 weighings regardless of the weight of the coin.
Writer
TheYango
Profile Joined September 2008
United States47024 Posts
April 24 2009 03:03 GMT
#61
On April 24 2009 11:57 p3numbra wrote:
Actually, doesn't Slithe's say that it needs 4 weighings if the coin is lighter? Mine needs exactly 3 weighings regardless of the weight of the coin.

Nah. Slithe's weighings are:
EFGH vs IJKL
BFGK vs CDHL
CEHK vs ADGL
The 3 weighings can uniquely determine which coin is fake, and what weighings you make are entirely independent of the results of previous weighings, which makes it much cleaner.
Moderator
520
Profile Blog Joined April 2009
United States2822 Posts
Last Edited: 2009-04-24 03:29:49
April 24 2009 03:28 GMT
#62
+ Show Spoiler +
EFGH vs IJKL
BFGK vs CDHL
CEHK vs ADGL

Case 1: EFGH = IJKL
ABCD contains the miscreant coin, weight undetermined.

Case 1.1: BFGK = CDHL
A is the miscreant coin, BCD are all determined.

Case 1.1.1: CEHK = ADGL
Impossible.

Case 1.1.2: CEHK > ADGL
A is light.

Case 1.1.3: CEHK < ADGL
A is heavy.

Case 1.2: BFGK > CDHL
B is heavy or CD is light.

Case 1.2.1: CEHK = ADGL
B is heavy.

Case 1.2.2: CEHK > ADGL
D is light.

Case 1.2.3: CEHK < ADGL
C is light.

Case 1.3: BFGK < CDHL
B is light or CD is heavy.

Case 1.3.1: CEHK = ADGL
B is light.

Case 1.3.2: CEHK > ADGL
C is heavy.

Case 1.3.3: CEHK < ADGL
D is heavy.

Case 2: EFGH < IJKL
EFGH is light or IJKL is heavy.

Case 2.1: BFGK = CDHL
E is light or IJ is heavy.

Case 2.1.1: CEHK = ADGL
IJ is heavy. Cannot determine which.


Case 2.1.2: CEHK > ADGL
Impossible.

Case 2.1.3: CEHK < ADGL
E is light.

Case 2.2: BFGK > CDHL
H is light or K is heavy.

Case 2.2.1 CEHK = ADGL
Impossible.

Case 2.2.2: CEHK > ADGL
K is heavy.

Case 2.2.3: CEHK < ADGL
H is light.

Case 2.3: BFGK < CDHL
FG is light or L is heavy.

Case 2.3.1 CDHK = ADGL
F is light.

Case 2.3.2 CDHK > ADGL
G is light.

Case 2.3.3 CDHK < ADGL
L is heavy.

Case 3: EFGH > IJKL
EFGH is heavy or IJKL is light.

Case 3.1: BFGK = CDHL
E is heavy or IJ is light.

Case 3.1.1: CEHK = ADGL
IJ is light. Cannot determine which.


Case 3.2.2: CEHK > ADGL
E is heavy.

Case 3.3.3: CEHK < ADGL
Impossible.

Case 3.2: BFGK > CDHL
FG is heavy or L is light.

Case 3.2.1: CEHK = ADGL
F is heavy.

Case 3.2.2: CEHK > ADGL
L is light.

Case 3.2.3: CEHK < ADGL
G is heavy.

Case 3.3: BFGK < CDHL
H is heavy or K is light.

Case 3.3.1: CEHK = ADGL
Impossible.

Case 3.3.2: CEHK > ADGL
H is heavy.

Case 3.3.3: CEHK < ADGL
K is light.


Found two flaws through rigor.
Writer
TheYango
Profile Joined September 2008
United States47024 Posts
Last Edited: 2009-04-24 03:33:19
April 24 2009 03:31 GMT
#63
On April 24 2009 12:28 p3numbra wrote:
Found two flaws through rigor.

Gah, I carried through his typo, the correct one was:

EFGH vs IJKL
BFGK vs CDHL
CEHJ vs ADGL

Also, rigor is a REALLY INEFFICIENT way of testing whether it works. I did an analysis in spoilers previously.
Moderator
520
Profile Blog Joined April 2009
United States2822 Posts
April 24 2009 03:38 GMT
#64
Aah, sick. That method is way more efficient than mine. Good job!
Writer
Chef
Profile Blog Joined August 2005
10810 Posts
Last Edited: 2009-04-24 04:02:42
April 24 2009 04:01 GMT
#65
Weigh two coins against one coin and hope you get lucky on the first try.
LEGEND!! LEGEND!!
micronesia
Profile Blog Joined July 2006
United States24698 Posts
April 24 2009 04:03 GMT
#66
On April 24 2009 13:01 Chef wrote:
Weigh two coins against one coin and hope you get lucky on the first try.

This answer is specifically incorrect in case you weren't aware since you can factor in the odds and payout of each case and you'll realize it is inferior to some of the other solutions already presented.
ModeratorThere are animal crackers for people and there are people crackers for animals.
Chef
Profile Blog Joined August 2005
10810 Posts
April 24 2009 04:05 GMT
#67
What if you only have time to weigh once, or you DIE?

Then it doesn't matter how efficient the other methods are, because anymore than one try kills you.
LEGEND!! LEGEND!!
micronesia
Profile Blog Joined July 2006
United States24698 Posts
April 24 2009 04:06 GMT
#68
On April 24 2009 13:05 Chef wrote:
What if you only have time to weigh once, or you DIE?

Then it doesn't matter how efficient the other methods are, because anymore than one try kills you.

I suppose if you randomly add in convenient circumstances unrelated to the original problem, then you could make a case for just about any possible solution.

What a waste of time this conversation has been :p
ModeratorThere are animal crackers for people and there are people crackers for animals.
Chef
Profile Blog Joined August 2005
10810 Posts
April 24 2009 04:09 GMT
#69
The task is to use the scale the least number of times to determine which coin is fake.


I didn't add anything. He asked what scenario will give you the least number of tries.

Suppose there were a contest with 1000 people. Whoever determines which coin is fake in the least number of tries wins. You're not going to win by being slow and steady, because enough other people are going to be using the quick and dirty method that at least one will get lucky.

Hah ha!
LEGEND!! LEGEND!!
micronesia
Profile Blog Joined July 2006
United States24698 Posts
April 24 2009 04:10 GMT
#70
On April 24 2009 13:09 Chef wrote:
Show nested quote +
The task is to use the scale the least number of times to determine which coin is fake.


I didn't add anything. He asked what scenario will give you the least number of tries.

Suppose there were a contest with 1000 people. Whoever determines which coin is fake in the least number of tries wins. You're not going to win by being slow and steady, because enough other people are going to be using the quick and dirty method that at least one will get lucky.

Hah ha!

Then why don't you just set the condition that 'whoever is first wins' and then just pick a random coin and you might be right?

This is so ridiculous...
ModeratorThere are animal crackers for people and there are people crackers for animals.
Chef
Profile Blog Joined August 2005
10810 Posts
April 24 2009 04:12 GMT
#71
Because you have to determine it's fake. You won't know if it's fake or not if you just pick up a coin.
LEGEND!! LEGEND!!
SpiritoftheTunA
Profile Blog Joined August 2006
United States20903 Posts
April 24 2009 04:18 GMT
#72
chef, how would weighing 2 coins against 1 coin even work if a. the fake is lighter b. the fake is less heavy than 2 normal coins
posting on liquid sites in current year
Chef
Profile Blog Joined August 2005
10810 Posts
Last Edited: 2009-04-24 04:27:26
April 24 2009 04:20 GMT
#73
I'm assuming we live in 2009 and have scales that tell you the actual weight of the coin. IE: If the one coin's weight multiplied by two is not equal to the weight of the other two coins, it's the fake.

Unless of course you get fucked and the fake is one of the two coins you're measuring together.

Oops
LEGEND!! LEGEND!!
SpiritoftheTunA
Profile Blog Joined August 2006
United States20903 Posts
April 24 2009 04:25 GMT
#74
On April 24 2009 13:20 Chef wrote:
I'm assuming we live in 2009 and have scales that tell you the actual weight of the coin. IE: If the one coin's weight multiplied by two is not equal to the weight of the other two coins, it's the fake.

Unless of course you get fucked and the fake is one of the two coins you're measuring together.

Oops

ummmmm stop making shit up
posting on liquid sites in current year
TheYango
Profile Joined September 2008
United States47024 Posts
Last Edited: 2009-04-24 04:26:13
April 24 2009 04:25 GMT
#75
Chef, do you really have nothing better to do than to troll blogs right now?

Hell, this blog isn't worth trolling anymore, because the OP's question has been answered in multiple ways already.
Moderator
Chef
Profile Blog Joined August 2005
10810 Posts
April 24 2009 04:28 GMT
#76
On April 24 2009 13:25 SpiritoftheTunA wrote:
Show nested quote +
On April 24 2009 13:20 Chef wrote:
I'm assuming we live in 2009 and have scales that tell you the actual weight of the coin. IE: If the one coin's weight multiplied by two is not equal to the weight of the other two coins, it's the fake.

Unless of course you get fucked and the fake is one of the two coins you're measuring together.

Oops

ummmmm stop making shit up

LEGEND!! LEGEND!!
minus_human
Profile Blog Joined November 2006
4784 Posts
April 24 2009 09:00 GMT
#77
This can be solved with 3 weighs I'm quite sure since I double-checked with the help of my math teacher, took me a week to figure out at some random point in highschool.

Trying to explain it all here seems like a titanic task, since there are many possibilities. But the answer is 3.
Nytefish
Profile Blog Joined December 2007
United Kingdom4282 Posts
April 24 2009 09:18 GMT
#78
When I first heard this problem I did it p3numbra's way. I didn't write anything down but it was clear in my head. I like Slithe's solution a lot more though, it's more obvious how the problem generalises too I think.
No I'm never serious.
minus_human
Profile Blog Joined November 2006
4784 Posts
April 24 2009 09:25 GMT
#79
on second thought, I'm heavily trying to do it again, but there are a few evolutions where it's impossible to make to without the fourth weigh.

I'm a little confused, will probably try again later

My solution was basically Slithe's solution
Normal
Please log in or register to reply.
Live Events Refresh
Next event in 45m
[ Submit Event ]
Live Streams
Refresh
StarCraft: Brood War
Sea 2420
ToSsGirL 540
Jaedong 390
Pusan 388
Leta 310
actioN 305
Stork 235
Zeus 228
Soma 149
TY 97
[ Show more ]
firebathero 85
Movie 78
JulyZerg 51
Sharp 46
NaDa 43
Rush 25
SilentControl 25
Light 23
Sacsri 20
ZerO 19
Liquid`Ret 18
Bale 12
ajuk12(nOOB) 10
ivOry 2
Dota 2
XcaliburYe338
BananaSlamJamma293
XaKoH 122
NeuroSwarm78
League of Legends
JimRising 482
Counter-Strike
olofmeister1070
ceh9612
flusha99
oskar94
Other Games
singsing1368
Happy151
SortOf106
ZerO(Twitch)4
Organizations
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 15 non-featured ]
StarCraft 2
• Berry_CruncH346
• LUISG 13
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• lizZardDota287
League of Legends
• Nemesis1562
• Jankos498
Upcoming Events
The PondCast
45m
WardiTV Summer Champion…
1h 45m
herO vs MaxPax
Clem vs Classic
Replay Cast
14h 45m
LiuLi Cup
1d 1h
MaxPax vs TriGGeR
ByuN vs herO
Cure vs Rogue
Classic vs HeRoMaRinE
Cosmonarchy
1d 6h
OyAji vs Sziky
Sziky vs WolFix
WolFix vs OyAji
Big Brain Bouts
1d 6h
Iba vs GgMaChine
TriGGeR vs Bunny
Reynor vs Classic
Serral vs Clem
BSL Team Wars
1d 9h
Team Hawk vs Team Dewalt
BSL Team Wars
1d 9h
Team Hawk vs Team Bonyth
SC Evo League
2 days
TaeJa vs Cure
Rogue vs threepoint
ByuN vs Creator
MaNa vs Classic
Maestros of the Game
2 days
ShoWTimE vs Cham
GuMiho vs Ryung
Zoun vs Spirit
Rogue vs MaNa
[ Show More ]
[BSL 2025] Weekly
2 days
SC Evo League
3 days
Maestros of the Game
3 days
SHIN vs Creator
Astrea vs Lambo
Bunny vs SKillous
HeRoMaRinE vs TriGGeR
BSL Team Wars
3 days
Team Bonyth vs Team Sziky
BSL Team Wars
3 days
Team Dewalt vs Team Sziky
Monday Night Weeklies
4 days
Replay Cast
4 days
Sparkling Tuna Cup
5 days
Replay Cast
6 days
Liquipedia Results

Completed

CSL Season 18: Qualifier 1
uThermal 2v2 Main Event
HCC Europe

Ongoing

Copa Latinoamericana 4
BSL 20 Team Wars
KCM Race Survival 2025 Season 3
BSL 21 Qualifiers
ASL Season 20
Acropolis #4 - TS1
CSL Season 18: Qualifier 2
SEL Season 2 Championship
WardiTV Summer 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1
BLAST.tv Austin Major 2025

Upcoming

CSL 2025 AUTUMN (S18)
LASL Season 20
BSL Season 21
BSL 21 Team A
Chzzk MurlocKing SC1 vs SC2 Cup #2
RSL Revival: Season 2
Maestros of the Game
EC S1
Sisters' Call Cup
Skyesports Masters 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
MESA Nomadic Masters Fall
Thunderpick World Champ.
CS Asia Championships 2025
Roobet Cup 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.