回溯法解决TSP问题

#include<iostream> #define MAXSUM 100 #define INF 65535 using namespace std; class TSP{ //TSP类 public: int bestv; //最优解即最短路径 int tempv; //当前路径长度 int node; //节点个数 int edge; //无向
相关文章
相关标签/搜索