How do you solve the 15-puzzle with A-Star or Dijkstra's Algorithm?

后端 未结 9 949
春和景丽
春和景丽 2021-02-02 15:35

I\'ve read in one of my AI books that popular algorithms (A-Star, Dijkstra) for path-finding in simulation or games is also used to solve the well-known \"15-puzzle\".

C

9条回答
  •  有刺的猬
    2021-02-02 15:53

    Remember that A* will search through the problem space proceeding down the most likely path to goal as defined by your heurestic.

    Only in the worst case will it end up having to flood fill the entire problem space, this tends to happen when there is no actual solution to your problem.

提交回复
热议问题