Professional Documents
Culture Documents
Maximum size of tabu list: Two Add link BE to the network shown in Figure 5, the
automatically place this added link on the tabu list. Delete
Stooping rule: Stop after three consecutive iterations
link AB from the network shown in Figure 5. Various
without an improvement in the best objective function value.
options for adding a link and deleting a link in iteration 2
In Figure 4 both constraints are violates, so that penalties of are shown in Table 3.
100 need to be imposed twice. Therefore the total cost of
Table 3: The options for adding a link and deleting another
this solution is
link in iteration 2
Cost = 20+10+5+15+200 = 250
Add Delete Cost
Iteration 1: There are three options for adding a link to the AD DE (Tabu move)
network in Figure 4 are BE, CD and DE. If BE were to be AD CD 85+100=185
chosen, the cycle formed, so the three options for deleting a AD AC 80+100=180
link would be CE, AC and AB. If CE were to be deleted, the BE CE 100+0=100
change in the cost would be 30-5=25 with no change in the BE AC 95+0=95
constraint penalties, so the total cost would increase from BE AB 85+0=85 (Minimum)
250 to 275. So that iteration 1 is followed as per Table 2. CD DE 60+100=160
CD DE 95+100=195
Table 2: The options for adding a link and deleting another
link in iteration 1 Iteration 3: The following are the decisions are made in
this iteration.
Add Delete Cost
BE CE 75+200=275 Add a link CD to the network shown in Figure 6, and then
BE AC 70+200=270 automatically place this added link on the tabu list. Delete
BE AB 60+100=160 link DE from the network shown in Figure 6. Various
CD AD 60+100=160 options for adding a link and deleting a link in iteration 3
CD AC 65+300=365 are shown in Table 4.
DE CE 85+100=185
DE AC 80+100=180 B
DE AD 75+0=75 (Minimum)
30 30
The final output of the iteration 1 in a network is shown in
Figure 5. 10 5
A C E
B
25
30 30 15 40
D
A 10 C 5 E
Figure 7. Modified network after Iteration 3 with optimal
solution cost=70
25
15 40 Table 4: The options for adding a link and deleting another
D link in iteration 3
Figure 5. Modified network after Iteration 1 with new Add Delete Cost
cost=75
Iteration 2: In the second iteration the following decisions AB BE (Tabu move)
are made. AB CE 100+0=100
AB AC 95+0=95
B AD DE 60+100=160
AD CE 95+0=95
30 30 AD AC 90+0=90
CD DE 70+0=70 (optimal solution
10 5 CD CE 105+0=105
A C E
With a well designed tabu search algorithm, the best trial
solution found in Figure 7 after the algorithm has run a
25
modest number of iterations is likely to be a good feasible
15 40
D solution. It might even be an optimal solution [1], [2] but no
such guarantee can be given. Selecting a stopping rule that
Figure 6. Modified network after Iteration 2 with new provides a relatively long run of the algorithm increases the
cost=85 chance of reaching the global optimum.
106 (IJCNS) International Journal of Computer and Network Security,
Vol. 2, No. 2, February 2010
2.2 Simulated Annealing happens to inherit the better features of the parents is
Simulated annealing [1]-[5] is another widely used slightly more likely to survive into adulthood and then
metaheuritic that enables the search process to escape from become a parent who passes on some of these features to the
a local optimum. Each iteration of the simulated annealing next generation. The population tends to improve slowly
search process moves from the current trial solution to an over time by this process. A second factor that contributes to
immediate neighbor in the local neighborhood of this this process is a random, low-level mutation rate in the
solution, just as for tabu search. However, the difference DNA of the chromosomes. Thus, a mutation occasionally
from tabu search lies in how an immediate neighbor is occurs that changes the features of a chromosome that a
selected to be the next trial solution. Let child inherits from a parent.
Zc = objective function value for the current trial solution 2.3.1 Basic Genetic Algorithm
Zn = objective function value for the current candidate to be Initialization: Start with an initial population of feasible
the next trial solution. trial solutions, perhaps by generation then randomly.
T = a parameter that measures the tendency to accept the
Iteration: Use a random process [5] that is biased toward
current candidate to be the next trial solution if this
the more fit members of the current population to select
candidate is not an improvement on the current trial
some of the members to become parents. Pair up the parents
solution.
randomly and then have each pair of parents give birth to
The rule for selecting which immediate neighbor will be the two children whose features are a random mixture [10] of
next trial solution is the following. the features of the parents, except for occasional mutations.
Evaluate the fitness for each new member in the new
Move Selection rule: Among all the immediate neighbors
population.
of the current trial solution [9], select one randomly to
become the current candidate to be the next trial solution. Stopping rule: Use some stopping rule, such as a fixed
Assuming the objective is maximization of the objective number of iterations, a fixed amount of CPU time, or a fixed
function, accept or reject this candidate to be the next trial number of consecutive iterations without any improvement
solution as follows: in the best trial solution found so far. Use the best trial
solution fond on any iteration as the final solution.
If Zn ≤ Zc, always accept this candidate
If Zn < Zc, accept the candidate with the following 3. Proposed Work
probability
The new algorithm based on integrating genetic
Zn − Zc algorithms, tabu search and simulated annealing methods to
Prof {acceptance} = e where x =
x
T solve the minimum spanning tree problem. The core of the
proposed algorithm is based on tabu search algorithms.
Genetic algorithm is used to generate new population
2.2.1 Basic Simulated Annealing Algorithm members in the reproduction phase of the tabu search
Initialization: Start with a feasible initial trial solution. algorithm. Simulated annealing method is used to accelerate
the convergence of the tabu search algorithm by applying
Iteration: Use to move selection rule to select the next the simulated annealing test for all the population members.
trial solution. A new implementation of the tabu search algorithm is
Check the temperature schedule: When the desired introduced. In the genetic algorithm part of the proposed
number of iterations has been performed at the current value algorithm, a simple short-term memory procedure is used to
of T, decrease T to the next value in the temperature counter the danger of entrapment at a local optimum, and
schedule and resume performing iterations at this next the premature convergence of the tabu search algorithm. A
value. simple cooling schedule has been implemented to apply the
simulated annealing test in the algorithm [3]-[5].
Stopping rule: When the desired number of iterations
have been performed at the smallest value of T in the 3.1 Basic Integration Algorithm
temperature schedule as final solution. Initialization: Start with a feasible trial solution.
2.3 Genetic Algorithms Iteration: Use an appropriate local search procedure to
Genetic algorithms [1]-[3] provide a third type of define the feasible moves into the local neighborhood [6] of
metaheuristic that is quite different from first two. This type the current trial solution. Determine which of the remaining
tends to be particularly effective at exploring various parts moves provides the best solution. At the same time Use the
of the feasible region and gradually evolving toward the best move selection rule to select the next trial solution. For each
feasible solutions. The modern field of genetics provides a iteration invoke the algorithm to test the cycles in a graph.
further explanation of this process of evolution and the
Stopping rule: If a pre-defined termination condition
natural selection involved in the survival of the fittest. In
is satisfied, output Best Solution and exit.
any species that reproduces by sexual reproduction, each
offspring inherits some of the chromosomes from each of 3.1.1 Algorithm for testing Cycles
the two parents, where the genes within the chromosomes
determine the individual features of the child. A child who
(IJCNS) International Journal of Computer and Network Security, 107
Vol. 2, No. 2, February 2010
Step 1: From the combination of edges and incidence Step 3: Test whether at least three nodes of degree more
matrix, obtain degree of each node contributed by the edges than one? If not go to step 5.
under consideration. Step 4: Delete pendant edges, if exists of n-1 edges and
Step 2: Test whether at least two nodes of degree one? If modify the degree of the modes accordingly and go to step 2.
not, go to step 6. Otherwise continue. Otherwise go to step 6.
Table 6: Comparisons of TS, GA, SA and Integration Algorithm for Spanning Tree
Graph TS GTA SA Integration Algorithm
size (No.
of Time(s) Cost Iteration Time(s) Cost Iteration Time(s) Cost Iteration Time(s) Cost Iteration
Nodes)
5 50 75 3 52 75 3 55 75 4 50 75 2
7 55 80 3 54 80 4 55 80 4 48 80 2
9 58 95 3 57 90 3 60 90 4 52 90 2
11 65 100 4 68 100 3 75 110 5 60 95 1
13 70 120 4 75 120 4 78 120 5 60 115 1
Figure 8. Comparisons of TS, GA, SA and Integration Algorithm for Spanning Tree
Step 5: Edge combinations are tree. The final output of the iteration 1 in a network is shown in
Step 6: Stop. Figure 9. Well defined tabu search algorithm [2], the best
trial solution found after the algorithm has run a modest
Iteration 1: Instead of charge a penalty for the constraint,
the constraint should be verified for every change in the number of iterations is likely to be a good feasible solution
graph. There are three options for adding a link to the [8]. But the integration algorithm found the feasible solution
network in Figure 4 are CD, DE and DE. If CD were to be in only little iteration from the starting.
chosen, the cycle formed, so the two options for deleting a
link would be AD and AC. If AD is added then AB should B
be deleted according to the second constraint. So that for
connecting B, BE should be added. So that iteration 1 is 30 30
followed as per Table 5.
10 5
Table 5: The options for adding a link and deleting another A C E
link in iteration 1
25
Add Delete Cost 15 40
D
BE CE 75
BE AC 70
Figure 9. Modified network after Iteration 1 with new
BE AB 60
Constraints violated. cost=70
CD AD 60
CD AC 65
CD AB 70 4. Experiments and Results
DE CE 85 Five testing graphs of the size 5, 7,9,11 and 13 nodes. All
DE AC 80 Constraints violated.
the five graphs are generating a parse tree using tabu search,
genetic algorithm, simulated annealing and integration
108 (IJCNS) International Journal of Computer and Network Security,
Vol. 2, No. 2, February 2010
algorithm. All the algorithm were stopped when the Annealing”, Operation Research, Vol. 40, pp. 113-
solutions 125, 1992.
did not change over a fixed number of iterations. The [7] K. Aggarwal and R. D. Kent, “An Adaptive
relative performance between TS, GTA, SA and Integration Generalized Scheduler for Grid Applications”, in
algorithm for the minimum spanning tree problem is given Proc. of the 19th Annual International Symposium on
in Table 6 and Figure 8. Five trials were taken on each High Performance Computing Systems and
graph and the average value of the cost and time in Applications (HPCS’05), pp.15-18, Guelph, Ontario
milliseconds are tabulated in each case. It is evident from Canada, May 2005.
the table that Integration algorithm performed very well as [8] Anant Oonsivilai, Wichai Srisuruk, Boonuruang
the problem size increased and showed superliner speedups Marungsri and Thanatchai Kulworawanichpong,
at higher problem sizes. “Tabu Search Approach to Solve Routing Issues in
Communication Networks”, World Academy of
5. Conclusion and Future Work Science, Engineering and Technology, pp. 1174-
1177, 2009.
In this paper, we have implemented an integration of [9] D.Janaki Ram, T.H.Steenivas and K.Ganapathy
all the three metaheuristics [5] algorithms for minimum Subramaniam, “Parallel Simulated Annealing
spanning tree problem. In this approach, a pre-defined Algorithms”, International journal of Parallel and
number of starting solutions are chosen from widely Distributed Computing, Vol.37,pp. 207-212, 1996.
separated regions in the sample space, and used in [10] D.Janakiram, “Grid Computing”, A Research
local search procedures to obtain a set of locally optimal Monograph, Tata McGraw-Hill Publishing Company
solutions. These locally optimal solutions [9] [10] are Limited, 2005.
then examined to provide an idea about the probability [11] Bernard Chazelle, “A Minimum Spanning Tree
of each vertex being included in an optimal solution Algorithm with Inverse Ackermann Type
to the instance. Using these ideas, the neighborhood Complexity”, Journal of the ACM, 47(6), pp. 1028-
of each solution is searched in a probabilistic manner, 1047, 2000.
such that the moves excluding vertices that have a [12] Sanjay Kumar Pal, “Renovation of Minimum
high probability of being in an optimal solution or of Spanning Tree Algorithms of Weighted Graph”,
including vertices that have a low probability of being Journal of ACM Ubiquity, Vol.9, Issue 7, pp. 1-5,
in an optimal solution are discouraged. Experiment 2008.
result shows that the integration of metaheuristics [13] Greening, Daniel R., “Parallel Simulated Annealing
provides a feasible solution [11] if the numbers of nodes Techniques”, Physica D, Vol.42, pp. 293-306,1990.
are increased in a graph. In future based on this result [14] Van Laarhoven, P.J.M., E.H.L., AArts, and Jan Karel
this may be extended for feasible dynamic routing in a Lenstra, “Job Shop Scheduling by Simulated Annealing”,
network. Operation Research, Vol. 40, pp. 113-125, 1992.