50 points
Explain 3-4 gallon jug problem by Elaeine rich
Answers
Answer:
The water jug problem is defined as follows: The water jug problem is defined as follows: Assume that you have two jugs, Jug-A and Jug-B each of which holds a certain number of gallons. Initially, both gallons are full, but we have an infinite supply of water.
A Water Jug Problem: You are given two jugs, a 4-gallon one and a 3-gallon one, a pump which has unlimited water which you can use to fill the jug, and the ground on which water may be poured. Neither jug has any measuring markings on it.
Solution:-
- Fill the 3-jug completely with water. ...
- Transfer this water into the 5-jug. ...
- Re-fill the 3-jug with water. ...
- Fill the 5-jug with water from your 3-jug. ...
- Pour out the 5-jug and refill it with your 1 gallon. ...
- Fill up the 3-jug. ...
- Transfer the 3 gallons (11.4 L) of water into the 5-jug to end up with 4 gallons (15.1 L).
Answer:
Question:
Explain 3-4 gallon jug problem by Elaeine rich ?
AnsweR:
The water jug problem is defined as follows: The water jug problem is defined as follows: Assume that you have two jugs, Jug-A and Jug-B each of which holds a certain number of gallons. Initially, both gallons are full, but we have an infinite supply of water.
A Water Jug Problem: You are given two jugs, a 4-gallon one and a 3-gallon one, a pump which has unlimited water which you can use to fill the jug, and the ground on which water may be poured. Neither jug has any measuring markings on it.
Hope it will be helpful :)...✍️