A* 用 C 实现

发布于 2024-09-13 10:36:02 字数 220 浏览 3 评论 0原文

在哪里可以找到 C 语言的 A* 实现?

我四处寻找,但似乎我的 google-fu 不够强大。我已经开始编写自己的实现,但后来我想起了 Stack Overflow,我想我应该先在这里问。编写一个真正的 A* 实现似乎有点复杂 - 我很想为二进制网格编写 Dijkstra 算法的实现,因为这就是我真正需要的,但我觉得我想要我的曲目中有一个 CA* 实现。

Where can I find an A* implementation in C?

I was looking around but it seems my google-fu is not strong enough. I've started writing my own implementation, but then I remembered Stack Overflow and I thought I should ask here first. It seems a bit complicated to write a real A* implementation - I was tempted to just write an implementation of Dijkstra's algorithm for a binary grid, since that's all I really need, but I feel like I want to have a C A* implementation in my repertoire.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

过期以后 2024-09-20 10:36:02

你的 google-fu 确实很弱,年轻的学徒 :-)

尝试用谷歌搜索astar c

第一个第二个链接是实际的代码实现(第一个链接在自由麻省理工学院许可下,不知道第二个链接) 。

Your google-fu is indeed weak, young padawan :-)

Try googling for astar c.

The first and second links are actual code implementations (the first under a liberal MIT licence, no idea about the second).

假面具 2024-09-20 10:36:02

在这里你可以找到伪代码: http://en.wikipedia.org/wiki/A*

要找到适合您的代码,只需搜索:
astar图搜索算法C

here you can find the pseudocode: http://en.wikipedia.org/wiki/A*

to find the right code for you just search after:
astar graph search algorithm C

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文