已知n个城市之间的相互距离,现有一个推销员必须遍访这n个城市,并且每个城市
只能访问一次,最后又必须返回出发城市。如何安排他对这些城市的访问次序,可使其
旅行路线的总长度最短?
-known cities between the distance from the existing one must salesman n visited this city, every city and can only be visited once, finally starting to return to the city. How to arrange for him to visit these cities priorities, it can travel routes, the total length of the shortest?
SHOW FULL COLUMNS FROM `jrk_downrecords` [ RunTime:0.001074s ]
SELECT `a`.`aid`,`a`.`title`,`a`.`create_time`,`m`.`username` FROM `jrk_downrecords` `a` INNER JOIN `jrk_member` `m` ON `a`.`uid`=`m`.`id` WHERE `a`.`status` = 1 GROUP BY `a`.`aid` ORDER BY `a`.`create_time` DESC LIMIT 10 [ RunTime:0.060435s ]
SHOW FULL COLUMNS FROM `jrk_tagrecords` [ RunTime:0.001050s ]
SELECT * FROM `jrk_tagrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 20 [ RunTime:0.001112s ]
SHOW FULL COLUMNS FROM `jrk_member` [ RunTime:0.001012s ]
SELECT `id`,`username`,`userhead`,`usertime` FROM `jrk_member` WHERE `status` = 1 ORDER BY `usertime` DESC LIMIT 10 [ RunTime:0.003093s ]
SHOW FULL COLUMNS FROM `jrk_searchrecords` [ RunTime:0.000940s ]
SELECT * FROM `jrk_searchrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 5 [ RunTime:0.003588s ]
SELECT aid,title,count(aid) as c FROM `jrk_downrecords` GROUP BY `aid` ORDER BY `c` DESC LIMIT 10 [ RunTime:0.014076s ]
SHOW FULL COLUMNS FROM `jrk_articles` [ RunTime:0.001193s ]
UPDATE `jrk_articles` SET `hits` = 2 WHERE `id` = 4139 [ RunTime:0.027827s ]