【发布时间】:2018-07-23 07:32:31
【问题描述】:
我正在创建一个程序来以最低的成本解决这个难题
滑动标题拼图由三个黑色标题、三个白色标题和图中所示配置中的一个空白区域组成。
WWW_BBB
拼图的目标是让所有的白色瓷砖都在右边 黑色瓷砖,而空间的位置无关紧要
The puzzle has two legal moves(i.e. actions) with associated costs:
• A title may move into an adjacent empty location. – This has a step cost of
• A title can hop over one or two other tiles into the empty position.
– This has a step cost equal to the number of tiles jumped over.
我很难理解如何创建要在算法中实现的启发式算法。
我了解 Dijkstra 算法在这个问题中的实现,但不知道如何将其变成 A* 算法。
【问题讨论】:
标签: algorithm search artificial-intelligence heuristics