English 中文(简体)
旅行社
原标题:Travelling salesman query

I have read that one of the approximations for the TSP is to do the following: - Compute the minimal spanning tree (MST) - Perform a DFS of the MST

解决技术优先方案的目标是,每只一次检查一次。 旅行者从A点开始,他需要用图表访问所有其他要点,然后回到A点(有时这一条款没有存在),确保每次访问一次。

Assume that the MST T of a graph G is as follows: Minimal spanning tree of a graph

劳动力调查是A-B-C-E-D。

我的问题是要解决普惠制问题,我需要旅行者必须访问的所有城市(点)名单。 显然,在《婚姻关系法》中不存在从E到D的道路。 这样又如何解决这一问题?

最佳回答

只要在原图表中有一条从E到D的道路,那么在ST中,如果从E到D之间没有一条路,那就毫无意义。 通常,技术计划涉及一个完全相关的图表。

See section 2.1 of this paper for more info: http://www.cs.tufts.edu/~cowen/advanced/2002/adv-lect3.pdf

问题回答

暂无回答




相关问题
Java: JGraphT: Iterate through nodes

I m trying to iterate through all nodes, so I can print them out for graphviz. What is the best way to do that using the JGraphT library? public static void main(String[] args) { UndirectedGraph&...

Java: Adding nodes to graph bug

Preface: I know that there are high quality graph APIs available. I m interested in writing my own for self-improvement. This is my function to add nodes: public void addNode(Vertex v, ...

Radial plotting algorithm

I have to write an algorithm in AS3.0 that plots the location of points radially. I d like to input a radius and an angle at which the point should be placed. Obviously I remember from geometry ...

Microsoft .Net Chart Control not showing markers

I m using the Microsoft Chart Controls for Microsoft .NET Framework 3.5 and am having a spot of trouble getting Data Markers to show on the image. I m generating the chart at run-time, so can t just ...

3D graphs using pChart

Is there a way to draw a 3D Bar Graph using the pChart library in PHP? I m able to draw a 3D Pie graph but not a line graph. My code looks as follows //The 3D bar graph # // Dataset ...

Finding cycle of 3 nodes ( or triangles) in a graph

I am working with complex networks. I want to find group of nodes which forms a cycle of 3 nodes (or triangles) in a given graph. As my graph contains about million edges, using a simple iterative ...

How to create line chart in iPhone application? [closed]

I am creating a budget application in iPhone, to budget for personal incomes and expenses. Client s need is I want to see line graph (like stock market line report). Red line for (monthly / weekly /...

热门标签