我必须使用A *算法实现状态问题解决方案,并且我很难尝试理解它的过程。在这里,我解释了问题的组成部分以及我的疑虑:
这样的停车显示器,每辆车都用数字和字母描述:
A1 A3 B2 __ C1
B1 A2 __ __ C2
__ B3 A4 __ __
我必须使用A *算法来找到更换汽车的路径。我们要说的是:
A1 A2 A3 A4 __
__ B1 B2 B3 __
__ __ __ C1 C2
允许的动作是:
Going to the right: cost = 1
Going to the left: cost = 2
Changing lines (or entering the same) and stay in the left end: cost = 3
Changing lines (or entering the same) and stay in the right end: cost = 4
这是我们获得的有关该问题的所有信息,以下是我的疑问:
我真的希望有人可以帮助我,并为我带来一些亮点。非常感谢你提前:))