用于解决加权15拼图的启发式函数

时间:2016-11-24 08:58:47

标签: search artificial-intelligence heuristics

我正在寻找启发式功能来解决“加权15拼图” 问题。它与“15拼图”相同,只是我正在寻找最小的 当每个“切换”成本为我们正在移动的部分时,1-15(Link)的路径。

1 个答案:

答案 0 :(得分:0)

加权15拼图的启发式评估函数:

i - The element.  
MD(i) - Manhattan distance to the destination from the position of (i).

enter image description here