我使用广度优先搜索构建了一个8拼图求解器。我现在想修改代码以使用启发式方法。如果有人能回答以下两个问题,我将不胜感激:可解性我们如何确定8拼图是否可解?(给定起始状态和目标状态)维基百科是这样说的:Theinvariantistheparityofthepermutationofall16squaresplustheparityofthetaxicabdistance(numberofrowsplusnumberofcolumns)oftheemptysquarefromthelowerrightcorner.不幸的是,我无法理解那是什么意思。理解起来有点复杂。谁能用更简单的语言解释一