查看: 2643| 回复: 5
跳转到指定楼层
上一主题 下一主题
收起左侧

唔.....问个算法题,Travelling Salesman Problem(TSP)用哪种算法比较容易?

全局:

注册一亩三分地论坛,查看更多干货!

您需要 登录 才可以下载或查看附件。没有帐号?注册账号

x
本帖最后由 everwinter 于 2011-2-22 15:35 编辑

是对称的TSP,就是d(i,j)=d(j,i),但不满足三角不等式。最起码要比2的n次方要快些......但是编起来又不会太难......发愁ing............Final Project= =

上一篇:向地里的CSer讨教JAVA学习,新手上路
下一篇:求助!如果从电子信息工程跨到电磁场(还在EE的大类内)没学过的课影响大吗?
🔗
一剑终情 2011-2-22 17:12:28 | 只看该作者
全局:
TSP貌似是NPC问题啊
回复

使用道具 举报

🔗
lai 2011-2-22 17:17:11 | 只看该作者
全局:
NPC有什么approximation algorithm来着
回复

使用道具 举报

全局:
用演化计算算法,PSO,GA等比较好,常规算法挺难的
回复

使用道具 举报

🔗
iveney 2011-6-23 01:00:21 | 只看该作者
全局:
本帖最后由 iveney 于 2011-6-23 01:10 编辑
NPC有什么approximation algorithm来着
lai 发表于 2011-2-22 17:17

. 1point3acres

    TSP is in general inapproximatable, unless in some special cases like metric-TSP.
回复

使用道具 举报

🔗
iveney 2011-6-23 01:09:07 | 只看该作者
全局:
是对称的TSP,就是d(i,j)=d(j,i),但不满足三角不等式。最起码要比2的n次方要快些......但是编起来又不会太难......发愁ing............Final Project= =
everwinter 发表于 2011-2-22 15:33


If you can find an algorithm slightly better than O(2^n), then probably you can win this year's Turing Award (quote from Wikipedia):  
. 1point3acres
It is an open problem if there exists an exact algorithm for TSP that runs in time O(1.9999n)


    As far as I know symmetric doesn't help in terms of complexity, at best cut the solution space to a half. . 1point 3 acres
.
Life is hard, try to relax the problem a bit (Metric-TSP then Greedy is 2-approximation).
Or don't care exact solution (LP relaxation, evolutionary algos such as Genetic Algorithm, Simulated Annealing)
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册账号
隐私提醒:
  • ☑ 禁止发布广告,拉群,贴个人联系方式:找人请去🔗同学同事飞友,拉群请去🔗拉群结伴,广告请去🔗跳蚤市场,和 🔗租房广告|找室友
  • ☑ 论坛内容在发帖 30 分钟内可以编辑,过后则不能删帖。为防止被骚扰甚至人肉,不要公开留微信等联系方式,如有需求请以论坛私信方式发送。
  • ☑ 干货版块可免费使用 🔗超级匿名:面经(美国面经、中国面经、数科面经、PM面经),抖包袱(美国、中国)和录取汇报、定位选校版
  • ☑ 查阅全站 🔗各种匿名方法

本版积分规则

>
快速回复 返回顶部 返回列表