Geeks Talk

Prepare for your Next Interview




filling water problem[3]

This is a discussion on filling water problem[3] within the Brainteasers forums, part of the Brain Gym category; You have 5 liter jug, 11 liter jug, 13 liter jug and 24 liter jug. 24 liter jug have full of water. Your goal is finally the 11 liter, 13 ...


Go Back   Geeks Talk > Brain Gym > Brainteasers

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 02-13-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
filling water problem[3]

You have 5 liter jug, 11 liter jug, 13 liter jug and 24 liter jug. 24 liter jug have full of water.

Your goal is finally the 11 liter, 13 liter jug and 24 liter contains 8 liter waters and 5 liter jug contains no water. You have only 24 liter water and you are not getting more water from any other resources.

How can you fill the water?

------------------
suresh
Reply With Quote
The Following User Says Thank You to psuresh1982 For This Useful Post:
Sponsored Links
  #2 (permalink)  
Old 02-13-2007
Expert Member
 
Join Date: Jun 2006
Location: India
Posts: 411
Thanks: 15
Thanked 33 Times in 25 Posts
jamesravid is on a distinguished road
Re: filling water problem[3]

(5 , 11 , 13 , 24) ======>>>>>
======>>>>>(0 , 0 , 0 , 24) ======>>>>>(0 , 11 , 13 , 0) ======>>>>>(5 , 6 , 13 , 0)======>>>>> (5 , 0 , 13 , 6) ======>>>>>(5 , 11 , 2 , 6) ======>>>>>(5 , 11 , 0 , 8) ======>>>>>(5 , 0 , 11 , 8) ======>>>>>(0 , 3 , 13 , 8)======>>>>>(5 , 3 , 8 , 8) ======>>>>>(0 , 8 , 8 , 8)
__________________
Cheers,
:) James:)

Last edited by jamesravid : 02-13-2007 at 08:09 AM.
Reply With Quote
  #3 (permalink)  
Old 02-13-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: filling water problem[3]

James you are correct...but you are using 10 steps to acheive the result.

Find the minimum number of steps to reach the goal. 10 is not a minimum.


-------------------
suresh
Reply With Quote
  #4 (permalink)  
Old 02-13-2007
Junior Member
 
Join Date: May 2006
Location: New York
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
arp001 is on a distinguished road
Re: filling water problem[3]

24lit 13 lit 11lit 5 lit
24 0 0 0
0 13 11 0
0 8 11 5
8 8 3 5
8 8 8

Total 4 steps
Reply With Quote
  #5 (permalink)  
Old 02-14-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: filling water problem[3]

Your answer is...

24lit 13 lit 11lit 5 lit
24 0 0 0
0 13 11 0
0 8 11 5
8 8 3 5
8 8 8

1. You are not using 4 steps...Because you are combined these (11 13 0 0 and 0 13 11 0 ) into one step (0 13 11 0).

2. Your answer is wrong.

Explanation....

Look at this step. (0 8 11 5). From this step you are acheiving the next step (8,8,3,5). How you change exactly 8 liter water from 11 liter jug to 24 liter jug ?

Find the correct one...

---------------------
suresh
Reply With Quote
  #6 (permalink)  
Old 02-16-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
Smile Re: filling water problem[3]

Answer

A=24L B=13L C=11L D=5L


A B C D
24 0 0 0
13 0 11 0
8 0 11 5
8 5 11 0
8 13 3 0
8 8 3 5
8 8 8 0

Thanks
Manoj
Reply With Quote
  #7 (permalink)  
Old 02-16-2007
Expert Member
 
Join Date: Sep 2006
Location: Bengalooru (Formerly called Bangalore), India
Posts: 486
Thanks: 2
Thanked 28 Times in 27 Posts
kalayama is on a distinguished road
Re: filling water problem[3]

Well answered Manoj. Thought of replying to this thread, but finally decided against it as I have limited time and better threads to answer to (That doesn't mean this thread is no good. No. It is just that other threads had higher priority). Now, that I do have time, I will explain the logic to solve these kind of problems.

A general thumb rule for this kind of problems is, try to get the required amount of water in the largest first.
In this case we need to get 8 lts of water in 24 ltr Jug.
it will be (24-11-5)=8. Simple as that.

Next we need to get 8lt in 13lt jug.
It will be , (13-5)=8.

The third gets filled automatically. Thjis is the general way of solving for any puzzle of this kind.

Enjoy!

Cheers!
-Kalayama
__________________
[COLOR="Blue"][SIZE="2"]"If you are not living on the edge of your life, you are wasting space"[/SIZE][/COLOR]

Someone says "Impossible is nothing". The man next him says "Let me see you licking your elbow tip!"
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
one more filling water problem.. psuresh1982 Brainteasers 5 02-12-2007 10:15 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 12:01 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