You have a 12 liters jug full of water. You have two empty 8 liters and 5 liters jug. How can you divide the water into two equal parts using these jugs?
See the given image carefully. What you have to do is move the blue checkers in the position of the black checkers and vice versa. You are only allowed to move the checker to an adjacent empty space. Do it in the least possible moves.