Now, I understand how directed graphs work. But drawing one for this problem just baffles me.
I have a 3 gallon and a 5 gallon jug. I can fill them from a tap, transfer water from one another, and empty them. I need to prove that I can get exactly 1 gallon in one jug. I then need to draw the process using a directed graph model.
I solved the first part. I eventually got the 3 gallon jug with exactly one gallon of water. I'm having trouble trying to figure out how to draw this though. A hint says to use (a,b) to show each jug. I'm at a complete loss of how to do this without having a vertex representing every step, but this would just create a line. Any ideas?