期刊名称:International Journal of Advanced Computer Science and Applications(IJACSA)
印刷版ISSN:2158-107X
电子版ISSN:2156-5570
出版年度:2012
卷号:3
期号:11
DOI:10.14569/IJACSA.2012.031122
出版社:Science and Information Society (SAI)
摘要:In the approximate Euclidean min-weighted perfect matching problem, a set of points in the plane and a real number are given. Usually, a solution of this problem is a partition of points of into pairs such that the sum of the distances between the paired points is at most times the optimal solution. In this paper, the authors give a randomized algorithm which follows a Monte-Carlo method. This algorithm is a randomized fully polynomial-time approximation scheme for the given problem. Fortunately, the suggested algorithm is a one tackled the matching problem in both Euclidean nonbipartite and bipartite cases. The presented algorithm outlines as follows: With repeating times, we choose a point from to build the suitable pair satisfying the suggested condition on the distance. If this condition is achieved, then remove the points of the constructed pair from and put this pair in (the output set of the solution). Then, choose a point and the nearest point of it from the remaining points in to construct a pair and put it in . Remove the two points of the constructed pair from and repeat this process until becomes an empty set. Obviously, this method is very simple. Furthermore, our algorithm can be applied without any modification on complete weighted graphs and complete weighted bipartite graphs , where and m is an even.