You are given an m liter jug and a n liter jug. Both the jugs are initially empty. The jugs don’t have markings to allow measuring smaller quantities. You have to use the jugs to measure d liters of water where d is less than n. 

Initial State, Goal State, and Actions:
The initial state is where you start. In the classic scenario, this typically means both jugs are empty.
The goal state is where you want to reach, representing the desired water level, e.g., 4 liters.
Actions are the operations you can perform on the jugs, such as filling, emptying, or pouring water between them.

Let's consider a scenario with a 3-liter jug and a 5-liter jug, where you want to measure 4 liters of water.

Production rules-
Start with both jugs empty (0, 0).
Fill the 3-liter jug (3, 0).
Pour water from the 3-liter jug into the 5-liter jug (0, 3).
Fill the 3-liter jug again (3, 3).
Pour water from the 3-liter jug into the 5-liter jug until it's full (1, 5).
Empty the 5-liter jug (1, 0).
Pour the remaining water from the 3-liter jug into the 5-liter jug (0, 1).
Fill the 3-liter jug (3, 1).
Pour water from the 3-liter jug into the 5-liter jug until it's full (0, 4).