State Space Reduction for the Symmetric Traveling Salesman Problem through Halves Tour Complement

Similar documents
State Space Reduction for the SYMMETRIC Traveling Salesman Problem through Halves Tours Complement

A NEW HEURISTIC ALGORITHM FOR MULTIPLE TRAVELING SALESMAN PROBLEM

The Heuristic Strategy Implementation to the Hopfield -Tank TSP Neural Algorithm

Practice Final Exam 1

Fuzzy Inspired Hybrid Genetic Approach to Optimize Travelling Salesman Problem

Travelling salesman problem using reduced algorithmic Branch and bound approach P. Ranjana Hindustan Institute of Technology and Science

COMP 355 Advanced Algorithms Approximation Algorithms: VC and TSP Chapter 11 (KT) Section (CLRS)

Blind, Greedy, and Random: Algorithms for Matching and Clustering Using only Ordinal Information

Unit 8: Coping with NP-Completeness. Complexity classes Reducibility and NP-completeness proofs Coping with NP-complete problems. Y.-W.

Assignment No 2 (Group B)

Two new variants of Christofides heuristic for the Static TSP and a computational study of a nearest neighbor approach for the Dynamic TSP

An Algorithm for Solving the Traveling Salesman Problem

Using Python to Solve Computationally Hard Problems

Introduction to Approximation Algorithms

Recent PTAS Algorithms on the Euclidean TSP

Machine Learning for Software Engineering

Rearrangement of DNA fragments: a branch-and-cut algorithm Abstract. In this paper we consider a problem that arises in the process of reconstruction

Optimal tour along pubs in the UK

Algorithm Design and Analysis

val(y, I) α (9.0.2) α (9.0.3)

Questions? You are given the complete graph of Facebook. What questions would you ask? (What questions could we hope to answer?)

NP-Complete Problems

Lecture 1. 2 Motivation: Fast. Reliable. Cheap. Choose two.

Math 3012 Combinatorial Optimization Worksheet

Heuristic Approaches to Solve Traveling Salesman Problem

Effective Tour Searching for Large TSP Instances. Gerold Jäger

(a) (b) (c) Phase1. Phase2. Assignm ent offfs to scan-paths. Phase3. Determination of. connection-order offfs. Phase4. Im provem entby exchanging FFs

Decision Problems. Observation: Many polynomial algorithms. Questions: Can we solve all problems in polynomial time? Answer: No, absolutely not.

Notes for Lecture 24

1 The Traveling Salesperson Problem (TSP)

CMSC 451: Lecture 22 Approximation Algorithms: Vertex Cover and TSP Tuesday, Dec 5, 2017

Module 6 NP-Complete Problems and Heuristics

Best known solution time is Ω(V!) Check every permutation of vertices to see if there is a graph edge between adjacent vertices

Solution of P versus NP problem

1 The Traveling Salesman Problem

1 The Traveling Salesman Problem

Improvement heuristics for the Sparse Travelling Salesman Problem

6 ROUTING PROBLEMS VEHICLE ROUTING PROBLEMS. Vehicle Routing Problem, VRP:

A COMPARATIVE STUDY OF FIVE PARALLEL GENETIC ALGORITHMS USING THE TRAVELING SALESMAN PROBLEM

Vertex Cover Approximations

Trusses, NP-Completeness, and Genetic Algorithms

CSE 417 Branch & Bound (pt 4) Branch & Bound

Module 6 P, NP, NP-Complete Problems and Approximation Algorithms

Comparison Study of Multiple Traveling Salesmen Problem using Genetic Algorithm

Methods and Models for Combinatorial Optimization Exact methods for the Traveling Salesman Problem

Lower Bounds for Insertion Methods for TSP. Yossi Azar. Abstract. optimal tour. The lower bound holds even in the Euclidean Plane.

Discussion. What problems stretch the limits of computation? Compare 4 Algorithms. What is Brilliance? 11/11/11

Polynomial time approximation algorithms

Combinatorial Optimization - Lecture 14 - TSP EPFL

An O(log n) Approximation Ratio for the Asymmetric Traveling Salesman Path Problem

Massively Parallel Approximation Algorithms for the Traveling Salesman Problem

A combination of clustering algorithms with Ant Colony Optimization for large clustered Euclidean Travelling Salesman Problem

Algorithms and Experimental Study for the Traveling Salesman Problem of Second Order. Gerold Jäger

Amanur Rahman Saiyed (Indiana State University) THE TRAVELING SALESMAN PROBLEM November 22, / 21

Optimal tree for Genetic Algorithms in the Traveling Salesman Problem (TSP).

(Refer Slide Time: 01:00)

Overview. H. R. Alvarez A., Ph. D.

P vs. NP. Simpsons: Treehouse of Horror VI

Traveling Salesman Problem (TSP) Input: undirected graph G=(V,E), c: E R + Goal: find a tour (Hamiltonian cycle) of minimum cost

Presentation for use with the textbook, Algorithm Design and Applications, by M. T. Goodrich and R. Tamassia, Wiley, Approximation Algorithms

More NP-complete Problems. CS255 Chris Pollett May 3, 2006.

Pre-requisite Material for Course Heuristics and Approximation Algorithms

Assignment 5: Solutions

Effective Tour Searching for Large TSP Instances. Gerold Jäger

All 0-1 Polytopes are. Abstract. We study the facial structure of two important permutation polytopes

Efficient Bids on Task Allocation for Multi-Robot Exploration

APPROXIMATION ALGORITHMS FOR GEOMETRIC PROBLEMS

Improving the Held and Karp Approach with Constraint Programming

Questions... How does one show the first problem is NP-complete? What goes on in a reduction? How hard are NP-complete problems?

Travelling Salesman Problem: Tabu Search

IE 102 Spring Routing Through Networks - 1

Design and Analysis of Algorithms CS404/504. Razvan Bunescu School of EECS.

NP-Complete Problems

A SURVEY ON DIFFERENT METHODS TO SOLVE TRAVELLING SALESMAN PROBLEM

Assignment 3b: The traveling salesman problem

ISSN: (Online) Volume 3, Issue 5, May 2015 International Journal of Advance Research in Computer Science and Management Studies

CS270 Combinatorial Algorithms & Data Structures Spring Lecture 19:

The complement of PATH is in NL

ACO and other (meta)heuristics for CO

Solving Travelling Salesmen Problem using Ant Colony Optimization Algorithm

Approximation Algorithms for the Dubins' Traveling Salesman Problem

Introduction to Algorithms

Computational problems. Lecture 2: Combinatorial search and optimisation problems. Computational problems. Examples. Example

Modified Order Crossover (OX) Operator

Depth-First Branch-and-Bound versus Local Search: A Case Study

Travelling Salesman Problem. Algorithms and Networks 2015/2016 Hans L. Bodlaender Johan M. M. van Rooij

SOLVING TRAVELING SALESMAN PROBLEMS USING HEURISTIC LEARNING APPROACH

56:272 Integer Programming & Network Flows Final Examination -- December 14, 1998

Module 6 NP-Complete Problems and Heuristics

A Meta-heuristic Applied for a Topologic Pickup and Delivery Problem with Time Windows Constraints

Solutions to Assignment# 4

Adaptive Tabu Search for Traveling Salesman Problems

A CLUSTERING HEURISTIC BY EFFECTIVE NEAREST NEIGHBOR SELECTION

P and NP (Millenium problem)

Algorithms for Euclidean TSP

JOURNAL OF OBJECT TECHNOLOGY

Solving ISP Problem by Using Genetic Algorithm

A Polynomial-Time Deterministic Approach to the Traveling Salesperson Problem

An iteration of Branch and Bound One iteration of Branch and Bound consists of the following four steps: Some definitions. Branch and Bound.

Innovative Systems Design and Engineering ISSN (Paper) ISSN (Online) Vol.5, No.1, 2014

Transcription:

State Space Reduction for the Symmetric Traveling Salesman Problem through Halves Tour omplement Kamal R l-rawi ept of omputer Science, Faculty of Information Technology, Petra University, JORN E-mail:kamalr@uopedujo bstract The Traveling Salesman Problem (TSP) is an NP-hard The state space increases exponentially with the number of nodes N The number of paths is (N-)! There are two main points in the TSP we took advantage of: The number of states N in a path is known in advance, which is the number of nodes in the tour; and touring each node only once For symmetric TSP an optimal complete tour can be constructed by concatenating an optimal half path with one of its optimal half complement This limits a partial path to extend no more than its half way to the complete tour This limitation reduces sharply the state space and the searched state space as well This leads to reduction in both memory requirement and execution time which are the major challenges for computer scientist to tackle the TSP with exact algorithms Keywords: Traveling Salesman Problem, TSP, state space reduction, state space search, optimal path Introduction The TSP represents N nodes that we have to find the optimal tour that starts at a node, visits every other node exactly once, and returns to the starting node The TSP can be considered as a graph G with vertex set V and edge set E: G(V,E); V{,,N};E{cost c ij ; i,,n- ;j, N} For asymmetric graph c ij c ji, however for symmetric graph, which is our concern here, c ij c ji The TSP is an NP-hard s the number of nodes increase the number of paths increases exponentially For N nodes, the total number of paths are (N-)! Optimal solutions to small instances can be found in reasonable time; however, it will be very time consuming to solve large instances with optimal algorithms The TSP has many applications in the real words: areas of vehicle routing, workshop scheduling and computer wiring [], logistics, genetics, manufacturing and telecommunications [] There are many exact algorithms for the TSP in the literature However, since it is an NP-hard problem many approximation algorithms have been developed Fully polynomial approximation can be solved by pseudo polynomial algorithms Such algorithms require the upper and lower bounds for the optimal solution [] [] esigned an algorithm to conduct a very special case of the TSP with distance one and two Their approximated path is up to 8/7 The best known approximation algorithm for the general problem of TSP is (+/α), where α> [] s α increases better approximation will have, however, it will be more time consuming [6] laimed that they constructed an algorithm for the asymmetric TSP of O(logn) However, [7] proved that their algorithm is not accurate For more details about such approaches see [8] Many local search algorithms have been published Such algorithms are needed when an acceptable (we mean non optimal nor even near optimal) path is required due to lack of time, since finding the optimal path is time consuming task The well known Greedy algorithm construct the tour by adding the shortest edge available until building the complete tour Its complexity is O(nlog(n)) Insertion heuristic as its name indicates construct a tour by building a sub tour first then we expand the tour according to some heuristic measure Its complexity is O(n) [9] lgorithm, worst-case ratio /, with complexity O(n) Objective This work has been conducted to improve the performance of the optimal algorithms to find the optimal tour for the symmetric TSP Performance improvement comes from reducing the state space, and reducing the searched state space This leads to

reduction in memory requirement and the execution time lgorithm development ranch-and-ound (-n-) is an exact algorithm that is typically used to find optimal solutions of optimization problems However, employing it for the TSP for large N is very tedious task We will try in this work to reduce the state space and searched state space to obtain the optimal path for the TSP using -n- algorithm Ordinary -n- optimal search for TSP It is well known that number of paths for the TSP with N nodes is (N-)! The number of states in the whole state space is: +(N-)+(N-)*(N-)+ (N-)*(N-)*(N-)+ + (N-)* * *+[(N-)*(N-)* *] () We can rewrite the above formula as: N () S t + t ( N i)] + t ; t ; N [ i N o i Where each of the last three terms(n-)! Table (column) shows the number of states for different number of cities N using ordinary approach Figure shows the state space, and the searched state space for ordinary approach, using the data in table omplement approach (this work) There are two main points in the TSP we have to take advantage of: The number of states N in the optimal path is known in advance, which is the number of cities in the tour; and touring each node only once This let us branch a path no more than its half way to the complete tour complete tour can be constructed by concatenating a partial path with one of its complements halves partial paths Table (column) shows the number of states for different number of cities N using half tour complement approach Figure shows the state space, and the searched state space for complement approach, using the data in table In order to explain the complement approach we have to give an example Let us say we have five cities to tour E The complement halves partial paths for the half partial path are E and E These halves partial paths are complement for the half partial path too So, when we have the partial paths or and the partial paths of their complements E or E then a complete tour can be constructed For seven cities EFG, the complement halves partial paths for the half partial path are EFG, EGF, FEG, FGE, GEF, and GFE These halves partial paths are complement for halves partial paths,,,, and So, a complete tour can be constructed by concatenating a partial path from (,,,,, ) with a partial path from their complements (EFG, EGF, FEG, FGE, GEF, GFE) Limiting the partial path branching just to the half way of the complete tour reduces the state space of the TSP and decreases sharply the searched state space This leads to reduction in both memory requirement and execution time which are the major challenges for computer scientist to tackle the TSP for optimal path The number of states in the state space is: +(N-)+(N-)*(N-)+ (N-)*(N-)*(N-)+ + (N-)* (N- )* *(N-N/) () We can rewrite the above formula as: N / S t + t ( N i)] + t ; t () N [ i N o i Table (column) shows the number of states, using complement approach, for different values of N In addition to the reduction in the number of states, number of paths in the state space is reduced by % Table: The number of states in the state space for ordinary and complemented approaches for different values of N No of nodes Ordinary omplemented 6 6 86 8 8,7,,9,9 8,7 8,,9 97,,,88,86,7,66 6,86,,8,76 9,89,76 8 669E+ 9,99,69 76676E+7 7,6,866, The reduction in the state space is less than the ordinary approach by: (N-)* *(N-N/-)+ (N-)* *(N-N/-)+ +(N-)* * () Table: hypothetical cost to travel among four cities that used for figure and figure 99 6 66 6

99 6 8 6 7 6 8 9 6 6 68 77 Figure: The traveling salesman problem (TSP) state space for cities Number of states is Number of paths is (N-)!!6 The first number in a node represents the order of the node in branching The second number represents the accumulated cost at that partial path The character represents a city name The solid lines represent the searched state space to find the first complete path using -n- algorithm The total searched states are 6, which represents 77% of the whole state space The first complete optimal path is shown in heavy solid line The cost is The heavy dotted line represents the branching all partial path with cost less than what we found in order to assure an optimal path The total searched states are, which represents 99% of the whole state space

99 6 6 8 Figure: Same as figure but we do not branch any partial path more than its half complete tour This reduces the whole state space sharply The number of states in the new state space is (all states above the double dotted horizontal line), which represents % of the whole original state space The total searched states are 8, which represents 6% of the whole state space The first complete path is shown in heavy solid line It constructed by concatenation the half path with its complement half path to have the complete path The cost is The heavy dotted line represents the branching all partial path with cost less than what we found in order to assure an optimal path

This is a very large reduction for the state space This reduction increases as N increases Figure shows the percentage of the state space using complement approach relative to the ordinary approach It decreases exponentially with number of nodes N For a problem with nodes we reduced the state space down to 8% The searched state space is reduced too since the optimal tour is constructed by concatenating the optimal half path with its optimal complement Since we are extending the partial path with lowest cost, the concatenation of the first two complemented haves represents the optimal tour References [] Lawler, E L; Lenstra, J K; Kan, H G R; and Shmoys, (98) The Traveling Salesman Problem Essex, England: John Wiley & Sons [] pplegate, L, ixby, R E, hvatal, V, and ooke, W J, (7), "The travel salesman problem", Princeton Univ Press [] Hassin, R, (99), "pproximation schemes for the restricted shortest path problems" Math Oper Res, Vol7, No,, pp:6- complement/ordinary state space% number of cities N in the tour [] erman, P, and Karpiniski, M, (), "8/7 approximation algorithm for (,)-TSP," Electronic olloquium on omputational omplexity, Revision of Report No 69 [] rora, S, (998), Polynomial time approximation schemes for Euclidian traveling salesman and other geometric problems, J of M, Vol, No, pp: 7-78 [6] hekuri,, and P al, M, (7)," n O(logn) pproximation ratio for the asymmetric traveling salesman path problem," Theory of omputing, Vol, pp:97-9 Figure: complemented to ordinary percentage of the state space It reduced exponentially with number of nodes N onclusion The complete tour is constructed by concatenating the optimal half partial path with its optimal half partial path This limit a partial path no more than its half way to the complete tour This leads to: - reducing the state space, - reducing the searched state space, and - reducing number of paths in the state space This leads to reduction in memory requirement and the execution time [7] Nagarajan, V, (8), " On the LP relaxation of the asymmetric traveling salesman path problem," Theory of omputing,vol, pp:9-9 [8] Sahni, S, (976),"General techniques for combinational approximations," Oper Res, Vol, pp:9-96 [9] hristofides, N, (976)," Worst-case analysis of a new heuristic for the traveling salesman problem Technical report, GSI, arnegie-mellon University