scholarly journals Comparative Study of Prim and Genetic Algorithms in Minimum Spanning Tree and Travelling Salesman Problem

2018 ◽  
Author(s):  
Andysah Putera Utama Siahaan ◽  
Andre Hasudungan Lubis

Optimization is the essential thing in an algorithm. It can save the operational cost of an activity. At the Minimum Spanning Tree, the goal to be achieved is how all nodes are connected with the smallest weights. Several algorithms can calculate the use of weights in this graph. Genetic and Primary algorithms are two very popular algorithms for optimization. Prim calculates the weights based on the short-est distance from a graph. This algorithm eliminates the connected loop to minimize circuit. The nature of this algorithm is to trace all nodes to the smallest weights on a given graph. The genetic algorithm works by determining the random value as first initialization. This algorithm will perform selection, crossover, and mutation by the number of rounds specified. It is possible that this algorithm can not achieve the maximum value. The nature of the genetic algorithm is to work with probability. The results obtained are the most optimal results according to this algorithm. The results of this study indicate that the Prim is better than Genetics in determining the weights at the minimum spanning tree while Genetic algorithm is better for travelling salesman problem. Genetics will have maximum results when using large numbers of rotations and populations.

2018 ◽  
Author(s):  
Andysah Putera Utama Siahaan ◽  
Rusiadi

Performance is a process of assessment of the algorithm. Speed and security is the performance to be achieved in determining which algorithm is better to use. In determining the optimum route, there are two algorithms that can be used for comparison. The Genetic and Primary algorithms are two very popular algorithms for determining the optimum route on the graph. Prim can minimize circuit to avoid connected loop. Prim will determine the best route based on active vertex. This algorithm is especially useful when applied in a minimum spanning tree case. Genetics works with probability properties. Genetics cannot determine which route has the maximum value. However, genetics can determine the overall optimum route based on appropriate parameters. Each algorithm can be used for the case of the shortest path, minimum spanning tree or traveling salesman problem. The Prim algorithm is superior to the speed of Genetics. The strength of the Genetic algorithm lies in the number of generations and population generated as well as the selection, crossover and mutation processes as the resultant support. The disadvantage of the Genetic algorithm is spending to much time to get the desired result. Overall, the Prim algorithm has better performance than Genetic especially for a large number of vertices.


2020 ◽  
Vol 11 (1) ◽  
pp. 177
Author(s):  
Pasi Fränti ◽  
Teemu Nenonen ◽  
Mingchuan Yuan

Travelling salesman problem (TSP) has been widely studied for the classical closed loop variant but less attention has been paid to the open loop variant. Open loop solution has property of being also a spanning tree, although not necessarily the minimum spanning tree (MST). In this paper, we present a simple branch elimination algorithm that removes the branches from MST by cutting one link and then reconnecting the resulting subtrees via selected leaf nodes. The number of iterations equals to the number of branches (b) in the MST. Typically, b << n where n is the number of nodes. With O-Mopsi and Dots datasets, the algorithm reaches gap of 1.69% and 0.61 %, respectively. The algorithm is suitable especially for educational purposes by showing the connection between MST and TSP, but it can also serve as a quick approximation for more complex metaheuristics whose efficiency relies on quality of the initial solution.


Author(s):  
N. Mouttaki ◽  
J. Benhra ◽  
G. Rguiga

Abstract. The Travelling Salesman Problem (TSP) is a classical problem in combinatorial optimization that consists of finding the shortest tour through all cities such that the salesman visits each city only one time and returns to the starting city. Genetic algorithm is one of the powerful ways to solve problems of traveling salesman problem TSP. The current genetic algorithm aims to take in consideration the constraints happening during the execution of genetic algorithm, such as traffic jams when solving TSP. This program has two important contributions. First one is proposing simple method into taking in consideration an inconvenient route linked to traffic jams. The second one is the use of closeness strategy during the initialization step, which can accelerate the execution time of the algorithm.The results of the experiments show that the improved algorithm works better than some other algorithms. The conclusion ends the analysis with recommendations and future works.


2012 ◽  
Vol 576 ◽  
pp. 718-722
Author(s):  
Muhammad Ridwan Andi Purnomo ◽  
Mohammad Iqbal ◽  
Mila Faila Sufa

The multiple routes travelling salesman problem (mrTSP) is an extension of the well-known travelling salesman problem (TSP), where there are several points clusters to be visited by salesman. The problem to be solved is how to define the best route in every cluster and initial position of each routes as interconnection points for the salesman. In this paper, modified genetic algorithm (mGA) is proposed in order to solve the mrTSP problem. In the proposed mGA, new heuristic algorithm for crossover and mutation operator based on local shortest path algorithm is proposed in order to assist the mGA to improve 'best solution so far'. Numerical examples are also given to test the performance of proposed mGA when solving mrTSP. The result of the study shows that the mGA is superior compared to conventional GA.


Author(s):  
Hendy Tannady ◽  
Andrew Verrayo Limas

Supply chain management plays an important role in enhancing the efficiency and effectiveness of manufacturing industry business process. In this research, the problem is taken from a sales division in a company in determining the optimal sequence when delivering goods into nine cities. This problem is oftenreferred as travelling salesman problem. This problem is considered important since the optimal sequence can cut off operational cost. Creating an artificial intelligence for the company in determining the location and the optimal sequence of delivering goods is the main objective of this research. A genetic algorithm is utilized to determine the location and the optimal sequence. While for processing the data and concluding the result, researcher designed a Java-based application that provides the capability of automatic computing. The result of this computation is a sequence of locations with a fitness number for each. The best fitness number for the sequence location will be used for the final result and the conclusion to answer the company’s problem.


2020 ◽  
Vol 2020 ◽  
pp. 1-13
Author(s):  
Maha Ata Al-Furhud ◽  
Zakir Hussain Ahmed

The multiple travelling salesman problem (MTSP), an extension of the well-known travelling salesman problem (TSP), is studied here. In MTSP, starting from a depot, multiple salesmen require to visit all cities so that each city is required to be visited only once by one salesman only. It is NP-hard and is more complex than the usual TSP. So, exact optimal solutions can be obtained for smaller sized problem instances only. For large-sized problem instances, it is essential to apply heuristic algorithms, and amongst them, genetic algorithm is identified to be successfully deal with such complex optimization problems. So, we propose a hybrid genetic algorithm (HGA) that uses sequential constructive crossover, a local search approach along with an immigration technique to find high-quality solution to the MTSP. Then our proposed HGA is compared against some state-of-the-art algorithms by solving some TSPLIB symmetric instances of several sizes with various number of salesmen. Our experimental investigation demonstrates that the HGA is one of the best algorithms.


Sign in / Sign up

Export Citation Format

Share Document