While reading Artificial Intelligence a Modern Approach I came across the concept of deriving a heuristic from the solution cost of a sub-problem of a given problem.
For example, the following puzzles shows a sub problem of the 8-puzzle instance where the goal is to place tiles 1, 2, 3, 4 into their correct positions.
Start State = [ * 2 4 ] Goal State = [ 1 2 ]
[ * * ] [ 3 4 * ]
[ * 3 1 ] [ * * * ]
Then, the author expand this concept by saying that these heuristics derived from the sub-problems can be combined by taking the maximum value.
h(n)= max{ h1(n), . . , hm(n) }
Moreover, by using this approach the performance is improved greatly when compared to a simple heuristic like Manhattan distance.
I have been trying to wrap my head around the composite heuristics and the reasoning behing them. Let's say we have two heuristics derived from the solution cost of the following sub-problems:
h1234(n) = [ 1 2 ] h5678(n) = [ * * ]
[ 3 4 * ] [ * * 5 ]
[ * * * ] [ 6 7 8 ]
Will a composite heuristic like:
h1...8(n)= max{ h1234(n), h5678(n) }
- Really work in finding a solution for the complete 8-puzzle problem?
It seems to me that using a heuristic like h1...8(n) we will end up alternating between heuristics h1234(n) and h5678(n) which in turn might lead to one heuristic messing up the work of the other and never reaching a solution.
- Or will the heuristics help each other towards the complete solution?
Honestly, I do no see how this could work...