Re: [newbie] OT: useless factoid part deux

1999-11-22 Thread PadLocke

That's a Gaaame???
I thought it was some nightmarish exercise in recurssion my old functional
programming prof tortured us with *wink*


 Take a look at the Towers of Hanoi game inside Emacs.  The code should
 be similar to what you're trying to solve.  
 
 -- 
 Steve Philp
 Network Administrator
 Advance Packaging Corporation
 [EMAIL PROTECTED]
--
PadLocke the Ogre
There are three types of people in this world...
those who can count, and those who can't



Re: [newbie] OT: useless factoid part deux

1999-11-20 Thread Ronald J. Yacketta

David wrote:
 
 
dump 2 gallons water out fo bucket a and 3 out of bucket b, then dump
bucket b into a giving 4 galons ;) *snicker* I know,its not the right
answer, but it does give 4 gallons
 
 Hello All...
 
 Ok maybe this is not a "Factoid" per sebut just a little quiz to burn some
 brain cells, ( then again for some maybe not even that :) )
 
 U have 1, 3 gallon bucket
 "  "   "   1, 5 gallon bucket
 
 u absolutely need "exactly" 4 gallon's of water
 
 How to do?
 
 Rule: the only measuring device allowed r the buckets
 unlimited water supply
 
 "best to do while sober"
 
 as far as i know there r 2 answer's..
 
 it does help to straighten out your thoughts though
 
 actually what i am looking for is if anyone would be able to translate that into
 a wee app for X,.. Written in C, as the song goes
 
 enjoy..
 David



Re: [newbie] OT: useless factoid part deux

1999-11-20 Thread PadLocke

The buckets were built by automated machines being run by a Linux machine AND
the water is straight from Linus T's faucet :)

On Fri, 19 Nov 1999, you wrote:
 David wrote:
 
  U have 1, 3 gallon bucket
  "  "   "   1, 5 gallon bucket
  
  u absolutely need "exactly" 4 gallon's of water
 
   Fill the 3-gallon bucket, empty it into the 5-gallon one.  Fill it
 again, empty what will fit into the 5-gallon bucket.  Pour the remainder
 (in the 3-gallon bucket, which will be 1 gallon) wherever you need it. 
 Refill the 3-gallon bucket and pour it wherever you need it, which will
 give you 4 gallons there.  What does this have to do with a Linux list?
 
 --
 Dan Brown, KE6MKS, [EMAIL PROTECTED]
 Meddle not in the affairs of dragons, for you are crunchy and taste good
 with ketchup.
--
PadLocke the Ogre
There are three types of people in this world...
those who can count, and those who can't!



Re: [newbie] OT: useless factoid part deux

1999-11-20 Thread Russ Hogue

That is one method, there other is to pour off 3 gallons from the 5 gallon
leaving 2 gallons.  Empty the Three gallon bucket and put the 2 gallons of
water into it.  Fill the five and pour off 1 galolon into the three.

probably the most meaningful contribution I can make to this list G

R
- Original Message -
From: Andrew M George [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, November 20, 1999 7:12 AM
Subject: RE: [newbie] OT: useless factoid part deux


 hmmm
 1. Go to video Store
 2. Rent Die hard III
 3. Fast Forward to the park scene
 4. Take notes

 (sorry...couldn't resist)


 On Sun, 21 Nov 1999, you wrote:
  1. Fill the 5 gallon bucket using the 3 gallon bucket. Now there is 3
gallon
  of water in the 5 gallon bucket. And you can add 2 more gallon of water
to
  fulfil it.
  2. Once again fill the 5 gallon bucket using the 3 gallon bucket. Now
you
  have exactlt 1 gallon of water left in your 3 gallon bucket. (it's only
take
  2 gallon of water to fulfil the 5 gallon bucket.
  3. Empty the 5 gallon bucket. Then put your 1 gallon of water into it
(it
  was in the 3 gallon bucket).
  4. Add exactly 3 more gallon of water (of course using the 3 gallon
bucket).
  5. Now you have exactly 4 gallon of water.
 
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]On Behalf Of David
  Sent: November 19, 1999 5:34 PM
  To: [EMAIL PROTECTED]
  Subject: [newbie] OT: useless factoid part deux
 
 
  
 
  Hello All...
 
  Ok maybe this is not a "Factoid" per sebut just a little quiz to
  burn some
  brain cells, ( then again for some maybe not even that :) )
 
  U have 1, 3 gallon bucket
  "  "   "   1, 5 gallon bucket
 
  u absolutely need "exactly" 4 gallon's of water
 
  How to do?
 
  Rule: the only measuring device allowed r the buckets
  unlimited water supply
 
  snip






RE: [newbie] OT: useless factoid part deux

1999-11-20 Thread Andrew M George

hmmm
1. Go to video Store
2. Rent Die hard III
3. Fast Forward to the park scene
4. Take notes

(sorry...couldn't resist)


On Sun, 21 Nov 1999, you wrote:
 1. Fill the 5 gallon bucket using the 3 gallon bucket. Now there is 3 gallon
 of water in the 5 gallon bucket. And you can add 2 more gallon of water to
 fulfil it.
 2. Once again fill the 5 gallon bucket using the 3 gallon bucket. Now you
 have exactlt 1 gallon of water left in your 3 gallon bucket. (it's only take
 2 gallon of water to fulfil the 5 gallon bucket.
 3. Empty the 5 gallon bucket. Then put your 1 gallon of water into it (it
 was in the 3 gallon bucket).
 4. Add exactly 3 more gallon of water (of course using the 3 gallon bucket).
 5. Now you have exactly 4 gallon of water.
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of David
 Sent: November 19, 1999 5:34 PM
 To: [EMAIL PROTECTED]
 Subject: [newbie] OT: useless factoid part deux
 
 
 
 
 Hello All...
 
 Ok maybe this is not a "Factoid" per sebut just a little quiz to
 burn some
 brain cells, ( then again for some maybe not even that :) )
 
 U have 1, 3 gallon bucket
 "  "   "   1, 5 gallon bucket
 
 u absolutely need "exactly" 4 gallon's of water
 
 How to do?
 
 Rule: the only measuring device allowed r the buckets
 unlimited water supply
 
 snip



Re: [newbie] OT: useless factoid part deux

1999-11-20 Thread Dan Brown

David wrote:

 U have 1, 3 gallon bucket
 "  "   "   1, 5 gallon bucket
 
 u absolutely need "exactly" 4 gallon's of water

Fill the 3-gallon bucket, empty it into the 5-gallon one.  Fill it
again, empty what will fit into the 5-gallon bucket.  Pour the remainder
(in the 3-gallon bucket, which will be 1 gallon) wherever you need it. 
Refill the 3-gallon bucket and pour it wherever you need it, which will
give you 4 gallons there.  What does this have to do with a Linux list?

--
Dan Brown, KE6MKS, [EMAIL PROTECTED]
Meddle not in the affairs of dragons, for you are crunchy and taste good
with ketchup.



Re: [newbie] OT: useless factoid part deux

1999-11-20 Thread Ronald J. Yacketta

"Ronald J. Yacketta" wrote:
 
 David wrote:
 
  
 dump 2 gallons water out fo bucket a and 3 out of bucket b, then dump
 bucket b into a giving 4 galons ;) *snicker* I know,its not the right
 answer, but it does give 4 gallons
 
  Hello All...
 
  Ok maybe this is not a "Factoid" per sebut just a little quiz to burn some
  brain cells, ( then again for some maybe not even that :) )
 
  U have 1, 3 gallon bucket
  "  "   "   1, 5 gallon bucket
 
  u absolutely need "exactly" 4 gallon's of water
 
  How to do?
 
  Rule: the only measuring device allowed r the buckets
  unlimited water supply
 
  "best to do while sober"
 
  as far as i know there r 2 answer's..
 
  it does help to straighten out your thoughts though
 
  actually what i am looking for is if anyone would be able to translate that into
  a wee app for X,.. Written in C, as the song goes
 
  enjoy..
  David

ops! (3- 2 = 1) + (5 -3 = 2) = 3 *blush*
should have been 
(3 -2 = 1) + (5 - 2 = 3 ) = 4



Re: [newbie] OT: useless factoid part deux

1999-11-20 Thread Seth Gibson

On Sat, 20 Nov 1999, you wrote:
 what i was thinking of, was more or less an interative  game type, which will
 take user input too move the buckets around ie: poring water between them , with
 both sollutions incorperated into the game.
 
 Does this make sence?
 
Oh yes most definitely.  trying to visualize a bit to see how UI needs to be
setup. . .this could be neat. . .im seeing all kinds of possibilities. . .might
be a WHILE b4 i have some workable code but i'll see if anything comes up. . .


--

Seth Gibson
www.mp3.com/PSM0x2710
members.tripod.com/cybernetic_thunder (Under Construction)
The Functional Design of the UNIX Operating System is probably one of the
few truly beautiful things left in the world.



RE: [newbie] OT: useless factoid part deux

1999-01-17 Thread Ken Wilson

Fill the 5 gallon bucket twice and pour it into the 3 gallon bucket each
time letting the 3 gallon bucket overflow.  You will have exactly 4
gallons of water all over the ground.  You didn't specify where you
wanted the water so I assumed an overflow condition would be acceptable.
:)

Ken Wilson
First Law of Optimisation: The speed of a non-working program is
irrelevant
(Steve Heller, 'Efficient C/C++ Programming')

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of David
Sent: November 19, 1999 5:34 PM
To: [EMAIL PROTECTED]
Subject: [newbie] OT: useless factoid part deux




Hello All...

Ok maybe this is not a "Factoid" per sebut just a little quiz to
burn some
brain cells, ( then again for some maybe not even that :) )

U have 1, 3 gallon bucket
"  "   "   1, 5 gallon bucket

u absolutely need "exactly" 4 gallon's of water

How to do?

Rule: the only measuring device allowed r the buckets
unlimited water supply

snip



RE: [newbie] OT: useless factoid part deux

1999-01-17 Thread RICHARD FRIEDMAN

Fill up the 3gallon bucket with water. Empty it into the 5 gallon bucket.
You now have exactly 3 gallons in the 5 gallon bucket. Fill up the 3 gallon
bucket again. Empty it into the 5 gallon bucket until you have exactly 5
gallons. This means you have removed 2 gallons from the 3 gallon bucket and
now have exactly 1 gallon left in the 3 gallon bucket. Dump out the 5 gallon
bucket. Pour the 1 gallon of water out of the 3 gallon bucket, into the 5
gallon bucket. You now have an empty 3 gallon bucket and exactly 1 gallon in
the 5 gallon bucket. Fill up the 3 gallon bucket and pour it into the 5
gallon bucket. The 3 gallons you just poured into the bucket, plus the 1
gallon that was already there, gives you exactly, 4 gallons.

As for creating an algorithm for it... maybe someone else can work it out.
I'm pooped. :-)

Rick Friedman
Salant Corp. - MIS
800-472-8013 x75105
mailto: [EMAIL PROTECTED]

On November 19, 1999 David wrote:

Hello All...

Ok maybe this is not a "Factoid" per sebut just a little quiz
to burn some
brain cells, ( then again for some maybe not even that :) )

U have 1, 3 gallon bucket
"  "   "   1, 5 gallon bucket

u absolutely need "exactly" 4 gallon's of water

How to do?

Rule: the only measuring device allowed r the buckets
unlimited water supply

"best to do while sober"

as far as i know there r 2 answer's..

it does help to straighten out your thoughts though

actually what i am looking for is if anyone would be able to
translate that into
a wee app for X,.. Written in C, as the song goes

enjoy..
David





Re: [newbie] OT: useless factoid part deux

1999-01-17 Thread Ron Marriage

Fill 3 gal empty into 5 gal
Fill 3 gal fill 5 gal full.
You have 1 gal left in bucket.
Empty 5 gal pail.
pour remaining one gal into 5 gal
file three gal and empty into 5 gal pail.
voila, you have 4 gal in the five gal pail.

Sorry all, I couldn't resist.
Ron



David wrote:
 
 
 
 Hello All...
 
 Ok maybe this is not a "Factoid" per sebut just a little quiz to burn some
 brain cells, ( then again for some maybe not even that :) )
 
 U have 1, 3 gallon bucket
 "  "   "   1, 5 gallon bucket
 
 u absolutely need "exactly" 4 gallon's of water
 
 How to do?
 
 Rule: the only measuring device allowed r the buckets
 unlimited water supply
 
 "best to do while sober"
 
 as far as i know there r 2 answer's..
 
 it does help to straighten out your thoughts though
 
 actually what i am looking for is if anyone would be able to translate that into
 a wee app for X,.. Written in C, as the song goes
 
 enjoy..
 David

-- 

Ron Marriage
E-Mailmailto:[EMAIL PROTECTED]
Homepage  http://www.seidata.com/~marriage



RE: [newbie] OT: useless factoid part deux

1999-01-17 Thread Cheeqa Kidman

1. Fill the 5 gallon bucket using the 3 gallon bucket. Now there is 3 gallon
of water in the 5 gallon bucket. And you can add 2 more gallon of water to
fulfil it.
2. Once again fill the 5 gallon bucket using the 3 gallon bucket. Now you
have exactlt 1 gallon of water left in your 3 gallon bucket. (it's only take
2 gallon of water to fulfil the 5 gallon bucket.
3. Empty the 5 gallon bucket. Then put your 1 gallon of water into it (it
was in the 3 gallon bucket).
4. Add exactly 3 more gallon of water (of course using the 3 gallon bucket).
5. Now you have exactly 4 gallon of water.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of David
Sent: November 19, 1999 5:34 PM
To: [EMAIL PROTECTED]
Subject: [newbie] OT: useless factoid part deux




Hello All...

Ok maybe this is not a "Factoid" per sebut just a little quiz to
burn some
brain cells, ( then again for some maybe not even that :) )

U have 1, 3 gallon bucket
"  "   "   1, 5 gallon bucket

u absolutely need "exactly" 4 gallon's of water

How to do?

Rule: the only measuring device allowed r the buckets
unlimited water supply

snip