TranceAddict Forums (www.tranceaddict.com/forums)
- Chill Out Room
-- FAST reply.......A thinking ???
FAST reply.......A thinking ???
Hello TAs.......kinda need ur help on a problem that has to be turned in Sept. 4th at 10 am. just remembered I had this assigment to do about 30 min. ago. Here is the problem:
U R given 8 coins that R alike, but 1 is counterfiet & weighs slighty more than the others. Using only a balance (a scale that can only compare 1 side to the other), write a precise algorithm (or answer) that will identify the counterfeit coin in:
(a). exactly 3 weighings
(b). exaclty 2 weighings
I have already figured letter A out.....in need of B
Weigh 3 coins with 3 coins.
- If one set of coins is heavier than the other, use that set and toss the other ones.
- If they are equally balanced, then toss the two that you balanced, and keep the one you didn't balance.
Now with your last three coins, weigh 1 coin with 1 coin.
- If one coin weighs more than the other, that coin is the fake.
- If the coins are equal, then the coin you didn't weigh is the fake.
With that u run into a problem:
| quote: |
| If one set of coins is heavier than the other, use that set and toss the other ones. |
| quote: |
| If they are equally balanced, then toss the two that you balanced, and keep the one you didn't balance. |
But then again.......may be lookin at it wrong.....let me think it through
Alright.....I think I see where u are coming from......
Great.............thanks for the fast reply........
Re: FAST reply.......A thinking ???
| quote: |
| Originally posted by Dj Fred Lamar Hello TAs.......kinda need ur help on a problem that has to be turned in Sept. 4th at 10 am. just remembered I had this assigment to do about 30 min. ago. Here is the problem: U R given 8 coins that R alike, but 1 is counterfiet & weighs slighty more than the others. Using only a balance (a scale that can only compare 1 side to the other), write a precise algorithm (or answer) that will identify the counterfeit coin in: (a). exactly 3 weighings (b). exaclty 2 weighings I have already figured letter A out.....in need of B |
heh... I wish my assignments were as easy 
that would make my life more pleassnt 
GAWD DAMN PROBABILITY LOL I forgot how it goes with that tree branch lol
| quote: |
| Originally posted by k.k.d. heh... I wish my assignments were as easy ![]() that would make my life more pleassnt |
ahaha
Did you do his hw for him or what lol... best way to get hw fast is post on the board ;p. There is always more then enough geniuses
Re: ahaha
| quote: |
| Originally posted by DJ Lac Did you do his hw for him or what lol... best way to get hw fast is post on the board ;p. There is always more then enough geniuses |
thats a typical microsoft logic problem they'd ask in an interview 
i would have responded with the answer but a bunch of people already did
Powered by: vBulletin
Copyright © 2000-2021, Jelsoft Enterprises Ltd.