词条 | Route inspection problem |
释义 |
In graph theory, a branch of mathematics and computer science, the Chinese postman problem (CPP), postman tour or route inspection problem is to find a shortest closed path or circuit that visits every edge of an (connected) undirected graph. When the graph has an Eulerian circuit (a closed walk that covers every edge once), that circuit is an optimal solution. Otherwise, the optimization problem is to find the smallest number of graph edges to duplicate (or the subset of edges with the minimum possible total weight) so that the resulting multigraph does have an Eulerian circuit.[1] It may be solved in polynomial time.[2] The problem was originally studied by the Chinese mathematician Kwan Mei-Ko in 1960, whose Chinese paper was translated into English in 1962.[2] The alternative name "Chinese postman problem" was coined in his honor; different sources credit the coinage either to Alan J. Goldman or Jack Edmonds, both of whom were at the U.S. National Bureau of Standards at the time.[3][4] Undirected solutionThe undirected route inspection problem may be solved in polynomial time by an algorithm based on the concept of a T-join. Let T be a subset of the vertex set of a graph. An edge set J is called a T-join if the collection of vertices that have an odd number of neighboring edges in J is exactly the set T. A T-join exists whenever every connected component of the graph contains an even number of vertices in T. The T-join problem is to find a T-join with the minimum possible number of edges or the minimum possible total weight. For any T, a smallest T-join (when it exists) necessarily consists of paths that join the vertices of T in pairs. The paths will be such that the total length or total weight of all of them is as small as possible. In an optimal solution, no two of these paths will share any edge, but they may have shared vertices. A minimum T-join can be obtained by constructing a complete graph on the vertices of T, with edges that represent shortest paths in the given input graph, and then finding a minimum weight perfect matching in this complete graph. The edges of this matching represent paths in the original graph, whose union forms the desired T-join. Both constructing the complete graph, and then finding a matching in it, can be done in O(n3) computational steps. For the route inspection problem, T should be chosen as the set of all odd-degree vertices. By the assumptions of the problem, the whole graph is connected (otherwise no tour exists), and by the handshaking lemma it has an even number of odd vertices, so a T-join always exists. Doubling the edges of a T-join causes the given graph to become an Eulerian multigraph (a connected graph in which every vertex has even degree), from which it follows that it has an Euler tour, a tour that visits each edge of the multigraph exactly once. This tour will be an optimal solution to the route inspection problem.[5][6] Directed solutionOn a directed graph, the same general ideas apply, but different techniques must be used. If the graph is Eulerian, one need only find an Euler cycle. If it is not, one must find T-joins, which in this case entails finding paths from vertices with an in-degree greater than their out-degree to those with an out-degree greater than their in-degree such that they would make in-degree of every vertex equal to its out-degree. This can be solved as an instance of the minimum-cost flow problem in which there is one unit of supply for every unit of excess in-degree, and one unit of demand for every unit of excess out-degree. As such it is solvable in O(|V|2|E|) time. A solution exists if and only if the given graph is strongly connected.[6][7] Windy postman problemThe windy postman problem is a variant of the route inspection problem in which the input is an undirected graph, but where each edge may have a different cost for traversing it in one direction than for traversing it in the other direction. In contrast to the solutions for directed and undirected graphs, it is NP-complete.[8][9] ApplicationsVarious combinatorial problems are reduced to the Chinese Postman Problem, including finding a maximum cut in a planar graph and a minimum-mean length circuit in an undirected graph.[10] VariantsA few variants of the Chinese Postman Problem have been studied and shown to be NP-complete.[11]
See also
References1. ^{{citation|first1=Fred S.|last1=Roberts|first2=Barry|last2=Tesman|title=Applied Combinatorics|edition=2nd|year=2009|publisher=CRC Press|isbn=9781420099829|pages=640–642}} 2. ^{{citation | last = Kwan | first = Mei-ko | authorlink = Meigu Guan | journal = Acta Mathematica Sinica | language = Chinese | mr = 0162630 | pages = 263–266 | title = Graphic programming using odd or even points | volume = 10 | year = 1960}}. Translated in Chinese Mathematics 1: 273–277, 1962. 3. ^{{citation|contribution=Chinese postman problem|title=Dictionary of Algorithms and Data Structures|editor1-first=Vreda|editor1-last=Pieterse|editor2-first=Paul E.|editor2-last=Black|date=September 2, 2014|accessdate=2016-04-26|contribution-url=https://xlinux.nist.gov/dads/HTML/chinesePostman.html|publisher=National Institute of Standards and Technology}} 4. ^{{citation | last1 = Grötschel | first1 = Martin | author1-link = Martin Grötschel | last2 = Yuan | first2 = Ya-xiang | department = Optimization stories: 21st International Symposium on Mathematical Programming, Berlin, August 19–24, 2012 | journal = Documenta Mathematica | mr = 2991468 | pages = 43–50 | title = Euler, Mei-Ko Kwan, Königsberg, and a Chinese postman | url = http://www.emis.ams.org/journals/DMJDMV/vol-ismp/vol-ismp-all.pdf | volume = Extra | year = 2012}}. 5. ^{{citation|first=E.L.|last=Lawler|title=Combinatorial Optimization: Networks and Matroids|publisher=Holt, Rinehart and Winston|year=1976}} 6. ^1 2 {{citation|first1=J.|last1=Edmonds|first2=E.L.|last2=Johnson|title=Matching Euler tours and the Chinese postman problem|journal=Mathematical Programming|volume=5|year=1973|pages=88–124|doi=10.1007/bf01580113}} 7. ^{{cite web |last = Eiselt | first = H. A. | last2 = Gendeaeu | first2 = Michel | last3 = Laporte | first3 = Gilbert | title = Arc Routing Problems, Part 1: The Chinese Postman Problem | url = http://pubsonline.informs.org/doi/pdf/10.1287/opre.43.2.231 | journal = Operations Research | publisher = INFORMS | volume = 43 | issue = 2 | pages = 231–242 | accessdate = 2 December 2014 | doi=10.1287/opre.43.2.231}} 8. ^{{citation | last = Guan | first = Meigu | authorlink = Meigu Guan | doi = 10.1016/0166-218X(84)90089-1 | issue = 1 | journal = Discrete Applied Mathematics | mr = 754427 | pages = 41–46 | title = On the windy postman problem | volume = 9 | year = 1984}}. 9. ^1 {{citation|first1=J.K.|last1=Lenstra|first2=A.H.G.|last2=Rinnooy Kan|title=Complexity of vehicle routing and scheduling problems|journal=Networks|volume=11|issue=2|year=1981|pages=221–227|doi=10.1002/net.3230110211}} 10. ^A. Schrijver, Combinatorial Optimization, Polyhedra and Efficiency, Volume A, Springer. (2002). 11. ^{{cite web | last = Crescenzi | first = P. |author2=Kann, V. |author3=Halldórsson, M. |author4=Karpinski, M. |author5=Woeginger, G | title = A compendium of NP optimization problems | publisher = KTH NADA, Stockholm | url = http://www.nada.kth.se/~viggo/problemlist/compendium.html | accessdate = 2008-10-22}} 12. ^{{citation|first1=Fred S.|last1=Roberts|first2=Barry|last2=Tesman|title=Applied Combinatorics|edition=2nd|year=2009|publisher=CRC Press|isbn=9781420099829|pages=642–645}} External links
2 : NP-complete problems|Computational problems in graph theory |
随便看 |
|
开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。