Professional Documents
Culture Documents
Heuristics For Minimum Length Geometric Embedding of Free Trees Onto A Point Set
Heuristics For Minimum Length Geometric Embedding of Free Trees Onto A Point Set
1 INTRODUCTION
He geometric embedding problem has many applica-
tions. Suppose we want to establish a wired comput-
er network with a predefined topology such as star or
tree. If the positions of network terminals are fixed, clear-
ly, we would like to establish this network in such a way
that the required wiring is minimized [3]. This is one ex-
ample of the geometric graph embedding problem in
which we want to map the nodes of a graph to some
points in the plane such that the resulted geometric graph
on the plane has the minimum length. Two other impor-
tant special cases of this problem are the 1-center problem
and the traveling salesman problem (TSP). In the 1-center
problem, the aim is to find a center point among the given
points such that the total length of connecting the points
to the center point is minimized, it is equivalent to the
graph embedding problem when the given graph is a
star. Similarly, if the given graph is a cycle the TSP is
equivalent to this problem. By reduction from TSP, this
problem is NP-complete. Several approximation algo-
rithms are known for TSP: a factor of 2-approximation in
time O(nlogn) using the EMST (Euclidean Minimum
Spanning Tree) [13], a 1.5-approximation in time about
0(n
2.5
log
4
n) [6] using exact Euclidean matching [16], a (2
+ )-approximation in time 0((1)nloglogn) [3] and a
factor of (2 + ) in linear time [4].
Bern et al. [3] considered this problem when the given
graph is a complete tree. They first developed an algo-
rithm that can do geometric sorting approximately in li-
near time. Based on this idea, they devised an 0(logn)-
approximation algorithm in 0(nloglogn) time to embed a
complete tree T with n nodes with maximum degree to a
set of n points in the plane. When all points are on a line,
they presented an exact algorithm using dynamic pro-
gramming in 0(n
5.76
) time and gave a 3-approximation
algorithm in linear time. Bagheri and Razzazi [1] also
gave another approximation algorithm with approxima-
tion factor 0(pb(I)) which runs in linear time to embed
an n-vertices of general free tree T to a set of n points in
the plane, where pb(I) is the minimum depth [2] of a tree
path. The approximation factor provided by them is bet-
ter than the approximation factor of Bern et al. For many
n-node trees, pb(I) is much less than logn.
In this paper, we develop practical algorithms to solve
this problem when the given graph is a free tree. The or-
ganization of the paper is as follows. Some TSP heuristics
that are used during the paper, are given in Section 2. We
present our heuristic approach in Section 3. Experimental
results are shown in Section 4. Finally, we propose a few
suggestions for future work and conclude the paper in
Section 5.
2 TSP TOUR CONSTRUCTION HEURISTICS
In the traveling salesman problem (TSP), which is close-
ly related to the Hamiltonian cycle (HC) problem [6], we
are given a set {c
1
,c
2,
c
n
} of cities and for each pair
{c
i
,c
j
} of distinct cities a distance d (c
i
,c
j
).. Our goal is to
find an ordering of the cities that minimizes quantity:
J(c
n()
, c
n(+1)
) +J(c
n(n)
, c
n(1)
)
n-1
=1
This quantity is referred to as the tour length, since it is
the length of the tour that a salesman would make when
visiting the cities in the order specified by the permuta-
tion, returning to the initial at the end. We shall concen-
trate on the Euclidian TSP, in which the distances satisfy
d (c
i
,c
j
). = d (c
j
, c
i
) for 1 i, j n and the triangle inequali-
ty holds d (c
i
,c
k
) d (c
i
, c
j
) + d (c
j
,c
k
) for all i, j and k
[10,12]. We use some TSP heuristics such as: nearest
neighbor, farthest insertion and tree approximation for
constructing a TSP path and then we will improve the
path by using local search algorithm. In following we de-
scribe how to compute each.
T
Parya Noorbakhsh Department of Electrical , IT & Computer Sciences,
Islamic Azad University, Qazvin, Iran
Alireza Bagheri Department of Computer Engineering & IT, Amirkabir
University of Technology , Tehran, Iran
JOURNAL OF COMPUTING, VOLUME 4, ISSUE 9, SEPTEMBER 2012, ISSN (Online) 2151-9617
https://sites.google.com/site/journalofcomputing
WWW.JOURNALOFCOMPUTING.ORG 36
2012 Journal of Computing Press, NY, USA, ISSN 2151-9617
2.1 The nearest neighbor algorithm
This is perhaps the simplest and most straightforward
TSP heuristic. The key to this algorithm is to always visit
the nearest city. Following steps show the algorithm:
a) Start with any node as the beginning of the path.
b) Find the node closest to the last node added to the
path.
c) Repeat step (b) until all nodes are contained in the
path. Then, join the first and last nodes. The running
time for nearest neighbor as described is O(n
2
)
[10,16].
2.2 The tree algorithm
The algorithm uses minimum spanning tree (MST), the
MST can be computed in polynomial time and consists of
the lower bound for minimum length embedding in a
point set. The algorithm is as follows:
a) Use Prim or Kruskal [6] to construct an MST of the
graph corresponding to an instance of TSP.
b) Duplicate all edges, we can now easily construct an
Euler cycle.
c) Traverse the cycle, but do not visit any node more
than once, taking shortcuts when a node has been
visited.
Let OPT denote the cost of the minimum weight tour. By
contradiction example the length of MST OPT, so when
we duplicate all edges in step (b) to construct an Euler cycle,
this pseudotour, PT has Cost = 2 MST 2 OPT. By
using the triangle inequality in step (c), PT will change to
T*, therefore cost of T* 2 OPT, So this algorithm is
known as a 2-approximate algorithm and it has
O(n
2
logn) complexity [10].
2.3 The farthest insertion algorithm
We have different types of insertion algorithms, Such as
nearest, cheapest and farthest insertions that all of them follow
two structures: First, of all they select the city to be added
which has (minimal, cost-effective, maximal) distance to the
previously chosen city, next insert the selected city among the
cities. Nearest insertion chooses the city x which minimizes d
(I
Forfuturework,itwouldbedesirabletoworkonmeta
heuristics approach or finding a way to improve recent
results.Aninterestingopenproblemistodevelopbetter
approximationfactorforthisproblem.
REFERENCES
[1] A. Bagheri, M. Razzazi, An approximation algorithm for
minimum length geometric embedding of trees, unpub-
lished, 2010.
[2] A. Bagheri, M. Razzazi, Minimum height path partition-
ing of trees, Scientia Iranica, 17, pp. 99-104, 2010.
[3] M. W. Bern, H. J, Karloff, P. Raghavan, B. Schieber, Fast
Geometric Approximation Techniques and Geometric Em-
bedding Problems, Theoretical Computer Science, 106, pp.
265-281, 1992 .
[4] T. M. Chan, Well-seperated pair decomposition in linear
time, Inform. Process.Lett., 107, pp. 138-141, 2008.
[5] N. Christofides, Worst-case analysis of a new heuristic
for the travelling salesman problem, unpublished, 1976.
[6] T. Cormen, C. Leiserson, R. Rivest, Introduction to Algo-
rithms, The MIT Press Cambridge, Massachusetts London,
England, 1990.
[7] F. Harary, Graph Theory, Reading, MA: Addison-
Wesley, 1994.
[8] K. Helsgaun, An Effective Implementation of the Lin-
Kernighan Traveling Salesman Heuristic, Department of
Computer Science, Roskilde University, 1998.
[9] D. Johnson, L. McGeoch, The Traveling Salesman Prob-
lem: A Case Study in Local Optimiz-ation , J. Wiley and
Sons, London, pp. 215-310, 1997 .
[10] D.S. Johnson, L.A. McGeoch, Experimental Analysis of
Heuristics for the STSP, in The Traveling Salesman Problem
and its Variations G. Gutin and A. Punnen, Editors, Kluwer
Academic Publishers, pp. 369-443, 2002.
[11] D. Jungnickel, Graphs, Networks and Algorithms, Third
Ed., Springer-Verlag, 2008.
[12] S. Lin, Computer solutions of the travelling salesman
problem, Bell Systems Technical Journal, 44, pp.22452269,
1965.
[13] F. P. Preparata, M. I. Shamos, Computational Geome-
try: An Introduction, Springer-Verlag, 1985.
[14] G. Reinelt, TSPLIBA traveling salesman problem li-
brary, ORSA Journal on Computing, 3, pp. 376-384, 1991.
[15] D. J. Rosenkrantz, R. E. Stearns, P. M. Lewis, An analy-
sis of several heuristics for the traveling salesman problem,
SIAM J. Comput. , 6, pp. 563-581, 1977.
[16] P. M. Vaidya, Geometry helps in matching, In: Proceed-
ings of the 20th ACM Symposium on Theory of Computing,
pp. 422-425, 1988.
Parya Noorbakhsh recived the M.S. degree in computer engineer-
ing from Islamic Azad University (IAU), Qazvin branch at Qazvin, the
B.S. degree in computer engineering from Sajad University, mashad
Branch at mashad. Her research interests include algorithm
and computational geometry.
Alireza Bagheri recivied the B.S and M.S degrees in computer en-
gineering from sharif University of Technology (SUT) at Tehran, the
Ph.D degree in computer science from Amirkabir University of Tech-
noloy (AUT) at Tehran. Curently he is an assistant professor in the
computer engineering and IT department at Amirkabir University
Tecnology at Tehran.His research interests include computational
geometry, graph drawing and graph algorithms.
JOURNAL OF COMPUTING, VOLUME 4, ISSUE 9, SEPTEMBER 2012, ISSN (Online) 2151-9617
https://sites.google.com/site/journalofcomputing
WWW.JOURNALOFCOMPUTING.ORG 40
2012 Journal of Computing Press, NY, USA, ISSN 2151-9617