Geeks Talk

Prepare for your Next Interview




one more filling water problem..

This is a discussion on one more filling water problem.. within the Brainteasers forums, part of the Brain Gym category; You have 8 liter jug, 5 liter jug, 3 liter jug. 8 liter jug have full of water. Your goal is finally the 8 liter and 5 liter jug contains ...


Go Back   Geeks Talk > Brain Gym > Brainteasers

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 02-07-2007
Contributing Member
 
Join Date: Sep 2006
Location: bangalore, india
Posts: 1,007
Thanks: 0
Thanked 76 Times in 64 Posts
psuresh1982 will become famous soon enough
one more filling water problem..

You have 8 liter jug, 5 liter jug, 3 liter jug. 8 liter jug have full of water.

Your goal is finally the 8 liter and 5 liter jug contains 4 liter water and 3 liter jug contains no water. You have only 8 liter water and you are not getting more water from any other resources.

How can you fill the water?

----------------
suresh
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 02-07-2007
Expert Member
 
Join Date: Jan 2007
Location: Bangalore
Posts: 252
Thanks: 4
Thanked 8 Times in 7 Posts
Manojks is on a distinguished road
Re: one more filling water problem..

Hi,

A=8L jug
B=5L jug
C=3L jug

A B C
8 0 0
5 0 3
5 3 0
2 3 3
2 5 1
7 0 1
7 1 0
4 1 3
4 4 0

Thanks
Manoj
Reply With Quote
  #3 (permalink)  
Old 02-07-2007
Contributing Member
 
Join Date: Sep 2006
Location: bangalore, india
Posts: 1,007
Thanks: 0
Thanked 76 Times in 64 Posts
psuresh1982 will become famous soon enough
Re: one more filling water problem..

Manoj,

you are answer is correct. you are using 8 steps. find the minimum number of steps to acheive the result..8 is not a minimum.

------------------
suresh
Reply With Quote
  #4 (permalink)  
Old 02-07-2007
Expert Member
 
Join Date: Jan 2007
Location: Bangalore
Posts: 252
Thanks: 4
Thanked 8 Times in 7 Posts
Manojks is on a distinguished road
Re: one more filling water problem..

Hi Suresh,

Have u noticed that i have done 1 action per step either it is A <-> B or B <-> C or C <-> A. I want to know whether any possibility to optimize the steps with 1 action per step so i can try out...

Thanks
Manoj
Reply With Quote
  #5 (permalink)  
Old 02-07-2007
Contributing Member
 
Join Date: Sep 2006
Location: bangalore, india
Posts: 1,007
Thanks: 0
Thanked 76 Times in 64 Posts
psuresh1982 will become famous soon enough
Re: one more filling water problem..

yes manoj,

It is possible....Try to find the answer....

------------------
suresh
Reply With Quote
  #6 (permalink)  
Old 02-12-2007
Junior Member
 
Join Date: Feb 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
25001089 is on a distinguished road
Re: one more filling water problem..

A = 8l b = 5l c = 3l

8 0 0
3 5 0
3 2 3
6 2 0
6 0 2
1 5 2
1 4 3
4 4 0

Last edited by psuresh1982 : 02-13-2007 at 01:14 AM.
Reply With Quote
Reply

  Geeks Talk > Brain Gym > Brainteasers


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
Recycling Water norman Chemical Engineering 6 05-12-2008 03:50 AM
Filling "Date Creation" field with the current day Lokesh M Test Director 1 02-27-2008 08:39 AM
fill the water using jug.... psuresh1982 Brainteasers 1 02-07-2007 06:21 AM
Microwaved water Rajani Geeks Lounge 5 12-23-2006 03:42 PM
Query with Filling Functions joel C and C++ 2 09-16-2006 04:13 PM


All times are GMT -4. The time now is 01:41 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved