The main idea of ββthe proof is that when A * finds a path, he found a path that has a rating lower than that of any other possible paths. Since estimates are optimistic, other paths can be safely ignored.
In addition, A * is only optimal if two conditions are satisfied:
Heuristics are acceptable because they will never overestimate the value.
Heuristic is monotonous, i.e. if h (n i ) <h (n i + 1 ), then the real cost (n i ) <real-cost (n i + 1 ).
You can prove optimality to be correct by assuming the opposite and expanding the consequences.
Assume that the path given by A * is not optimal with a valid and monotonous heuristic, and think about what this means in terms of consequences (you will soon find that you will reach a contradiction), and thus your initial assumption is absurd.
From this we can conclude that your initial assumption was false, that is, A * is optimal with the above conditions. QED
source share