Escolar Documentos
Profissional Documentos
Cultura Documentos
nimeshkhawas1994@gmail.com
anupfullbuster123@gmail.com
arvindlal21@gmail.com
technoinceptra07@gmail.com
Abstract— In a large scale network, shortest distance query is a stored in 2 dimensional matrix, even the calculated data is
primary operation. Travelling salesman problem is a stored in matrix format.
major problem faced by salesman. Through this
paper we describe how the travelling salesman Following are the important factors of this project:
problem is solved by the method of genetic
algorithms. Genetic algorithms are the evolutionary
1. NP-hard Problem
techniques for finding the fittest gene amongst all the 2. Matrix
combination of chromosomes using crossover and mutations 3. MATLAB
4. Roulette Wheel
over the chromosomes. The purpose is to find the
5. Chromosomes
most approximate solution that gives us the
least distance, which is the shortest route for NP-hard Problem: It stands for nondeterministic
traversing the cities. polynomial time. A decision problem H comes under
This problem a salesman has to traverse n number of cities in
NP-hard problems which is not possible to solve in
such way that it gives a ‘uni’ directed graph and each city is
polynomial-time which means exact solution cannot
visited only once. We accomplish this by carrying out
the algorithm through generating a fitness be found by a computer. Only an optimal solution
formula and can be obtained.
with the help of genetic operators like selection,
crossover and mutation.
Matrix: Matrix are mathematical method for
keeping a similar kind of data together. Matrices are
Keywords— genetic algorithm, genetic operators, of various type, but the matrix used here is
II. GENETIC ALGORITHM 4.1 Encoding: Firstly for implementing TSP using GA the
Genetic Algorithm was proposed by John Holland in chromosomes length is considered as the total number of
1970. This algorithm mainly came in use at middle of 1980’s. nodes, which are cities. Five cities or nodes are considered
This is the algorithm which is based on the principle of and all the possible chromosomes are:
Charles Darwin which stated that “select the best and discard
the rest”.
This algorithm generates n number of offspring depending Chromosome 1: 2 4 5 3 1
upon the parents with the help of mutation and crossover and
the selects the best chromosome which is most fit amongst Chromosome 2: 3 1 2 5 4
all.
For Example: If there are certain number of animals of same Chromosome 3: 3 5 2 1 4
species and in which some of them are more fit physically
and mentally and due some factor the resources to them are Chromosome 4: 2 5 1 4 3
limited, then the chances of the survival for the less fit
animals becomes harder and leads to extinction. The same Chromosome 5: 2 4 5 3 1
above concept is used in the genetic algorithm.
Generate Initials Population of
Chromosomes Table 1: Distance Matrix of 5 cities
City 1 2 3 4 5
1 0 4.4531 4.1502 6.2789 2.4564
Apply Roulette Wheel
2 4.4531 0 6.9994 2.8626 6.8143
Selection to the population
3 4.1502 6.9994 0 9.5985 4.8619
4 6.2789 2.8626 9.5985 0 8.2254
5 2.4564 6.8143 4.8619 8.2254 0
Number of Iterations
4.3 Selection: It is used to select the chromosome whose
fitness value is small. We have used the tournament selection
by using Sorting method. Selection is used to pick the
chromosome whose fitness value is less. Here we have used
the tournament selection. As the name reflects tournaments
are played between two solutions and the superior solution is
selected and placed in the mating pool.
2 4 5 3 1
2 4 5 3 1 Output:
1 4 5 3 2
Elizabeth F. G. Goldbarg, Marco C. Particle Swarm It uses new velocity The unary and a
Goldbarg and Givanaldo R. de Souza Optimization Algorithm operator to direct the binary concept of
for the Traveling search. velocity operators
University Campus STeP Ri Slavka Salesman Problem does not solve the
3. Krautzeka 83/A 51000 Rijeka, problem for
Croatia, Published online 01, distinguishing pbest
September, 2008 or gbest effectively.
Khushboo Arora, Mamta Arora Better Result for Solving Phermone concept of Genetic algorithms
TSP: GA versus ACO Ant Colony result are not effective
International Journal of Advanced Optimization and when nodes increases
4. Research in Computer Science and Crossover, Mutation of and ACO does not
Software Engineering, Volume 6, Genetic Algorithm. provide effective
Issue 3, March 2016. result in terms of
distance travelled.
Naixue Xiong 1,2, Wenliang Wu 1 An Improved Routing New parameter for Effective results
and Chunxue Wu 1 Optimization Algorithm pheromone in Ant cannot be generated in
Based on Travelling Colony Optimization terms of the distance
School of Optical-Electrical and Salesman Problem for Algoritm. travelled.
Computer Engineering, University of Social Networks
Shanghai for Science and Technology,
Military Road, No. 516, Shanghai
200093, China;
5. xiongnaixue@gmail.com (N.X.);
wwl@st.usst.edu.cn (W.W.) 2
Department of Mathematics and
Computer Science, Northeastern State
University Address: 611 N, Grand
Ave, Tahlequah, OK 74464, USA,
Received: 5 April 2017; Accepted: 6
June 2017; Published: 8 June 2017
European Journal Engineering,
of Operational National
Research 59 (1992) University of
V. CONCLUSION
231-247 North- Singapore, 9
Holland, Centre de Engineering Drive
This project is based
recherche sur les 1, Singapore
Travelling Salesman
transports, 119260, Singapore,
Problem which is a NP-hard
Universit~ de Received 31 July
problem and cannot be
Montr&l, C.P. 2005; received in
exactly solved in
6128, Station A, revised form 10
polynomial time, so an
Montreal, Canada February 2007.
optimal result can only be
H3C M7 Received [3] Elizabeth F. G.
found. The use of Genetic
May 1991; Goldbarg, Marco
Algorithm promises to solve
received July 1991. C. Goldbarg and
this problem more a
[2] X.H. Shi , Y.C. Givanaldo R. de
effectively than other
Liang a,b,∗
, H.P. Lee Souza, “Particle
optimization algorithm due b,c
, C. Lu b, Q.X. Swarm
to its robustness. Genetic
Wang a
, “Particle Optimization
algorithm has the best
swarm Algorithm for the
combinational techniques
optimization-based Traveling Salesman
which are crossover and
algorithm for TSP Problem”,
mutation which is based on
and generalized University Campus
natural selection. Travelling
TSP”, a
College of STeP Ri Slavka
Salesman Problem is one of
Computer Science Krautzeka 83/A
the hardest problem in NP-
and Technology, 51000 Rijeka,
complete. The
Jilin University, Croatia, Published
implementation work is
Key Laboratory of online 01,
done in MATLAB software
Symbol September, 2008.
due to its inbuilt features
Computation and
[4] Khushboo Arora,
like number generator and
Knowledge
Mamta Arora,
graph plotter.
Engineering of the
“Better Result for
Ministry of
Solving TSP: GA
REFERENCES Education,
versus ACO”,
Changchun
International
b
130012, China,
[1] Gilbert Laporte, Journal of
Institute of High
“The Traveling Advanced
Performance
Salesman Problem: Research in
Computing,
An overview of Computer Science
Singapore 117528,
exact and and Software
c
Singapore,
approximate Engineering,
Department of
algorithms”,
Mechanical
Volume 6, Issue 3,
March 2016.
[5] Naixue Xiong 1,2,
Wenliang Wu 1 and
Chunxue Wu 1*,
“An Improved
Routing
Optimization
Algorithm Based
on Travelling
Salesman Problem
for Social
Networks”, 1
School of Optical-
Electrical and
Computer
Engineering,
University of
Shanghai for
Science and
Technology,
Military Road, No.
516, Shanghai
200093, China;
xiongnaixue@gmai
l.com (N.X.);
wwl@st.usst.edu.c
n (W.W.) 2
Department of
Mathematics and
Computer Science,
Northeastern State
University
Address: 611 N,
Grand Ave,
Tahlequah, OK
74464, USA,
Received: 5 April
2017; Accepted: 6
June 2017;
Published: 8 June
2017.