I’ve question to ask you guys.
I’m a newbie in Artificial Intelligence. I want to solve water jug problem(3 jugs – 3 lt, 5lt, 9lt – Trying to get 7lt) using A* search.
I need a heuristic function to implement the solution, but I can’t find a good heuristic f(n) so that the algorithm will find the least steps to the solution.
So given your parameters the non-heuristic way of solving this problem is:
So looking at this you will have a graph that has nodes that can be in one of two states:
PourorFill. You then assign to each node a weight that represents the amount of liquid you will get from it,1,2,3,etc. There should be no division involved, you just need to make it “expensive” to use specific operations.