This can be improved by maintaining a sorted list and simply grabbing the first item off the list every time you need the lowest F-cost square.

 
  • 这个方法可以改进,通过维护一个排序的列表,每次需要最小F值的方块时,简单的抓出第一个项目就可以了。
今日热词
目录 附录 查词历史