我可以使用贪婪的方法作为A*算法的启发式方法吗?

发布于 2025-02-08 07:48:16 字数 218 浏览 3 评论 0原文

我试图找到一种启发式方法来解决旅行推销员问题,但限制了更多。 使用贪婪的总费用为3.839。 使用A*估计为启发式,使我的结果为4.0至5.35。 在使用贪婪作为启发式时,使用*给我3.5的最佳结果。

这是错误的吗?使用贪婪的方法作为A*算法的启发式方法? 这是否属于非当时的类别?意味着它不能用作启发式?

PS:这是一个具有许多限制的图形,约有5个指标,因此我不能仅计算到最后一个点的距离。

I am trying to find a heuristic to solve a travel salesman problem but with more restrictions.
Using the greedy is giving me a total cost of 3.839.
Using A* with some estimation as a heuristic is giving me results of 4.0 to 5.35.
Using A* while using greedy as a heuristic gives me the best result of 3.5.

Is this wrong? Using a greedy method as a heuristic for a A* algorithm?
Does this fall under the category of non-optimistic? Meaning that It can't be used as a heuristic?

ps: this is a graph with many restrictions, with about 5 metrics, so I can't just calculate a distance to the final point.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文