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

Similar documents
Truncated and Anytime Depth-First Branch and Bound: A Case Study on the Asymmetric Traveling Salesman Problem*

Phase Transitions of the Asymmetric Traveling Salesman*

Complete Anytime Beam Search

Phase Transitions and Backbones of the Asymmetric Traveling Salesman Problem

JOURNAL OF OBJECT TECHNOLOGY

Effective Local and Guided Variable Neighbourhood Search Methods for the Asymmetric Travelling Salesman Problem

A Hybrid Recursive Multi-Way Number Partitioning Algorithm

Am Average-Case with Applications: Summary of

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

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

From Approximate to Optimal Solutions: A Case Study of Number Partitioning

Algorithms for Euclidean TSP

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

Optimal Sequential Multi-Way Number Partitioning

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

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

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

Multi-Way Number Partitioning

An Algorithm for Solving the Traveling Salesman Problem

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

Report on article The Travelling Salesman Problem: A Linear Programming Formulation

A Note on the Separation of Subtour Elimination Constraints in Asymmetric Routing Problems

Optimally Scheduling Small Numbers of Identical Parallel Machines

Comparison Study of Multiple Traveling Salesmen Problem using Genetic Algorithm

Recent PTAS Algorithms on the Euclidean TSP

The Traveling Salesman Problem: Adapting 2-Opt And 3-Opt Local Optimization to Branch & Bound Techniques

Genetic Algorithms with Oracle for the Traveling Salesman Problem

A NEW HEURISTIC ALGORITHM FOR MULTIPLE TRAVELING SALESMAN PROBLEM

4 INFORMED SEARCH AND EXPLORATION. 4.1 Heuristic Search Strategies

Improving the Held and Karp Approach with Constraint Programming

Coping with the Limitations of Algorithm Power Exact Solution Strategies Backtracking Backtracking : A Scenario

Massively Parallel Approximation Algorithms for the Traveling Salesman Problem

ALGORITHM CHEAPEST INSERTION

1 The Traveling Salesperson Problem (TSP)

Comparison of TSP Algorithms

Constraint Satisfaction Problems

A Computational Study of Bi-directional Dynamic Programming for the Traveling Salesman Problem with Time Windows

Construction heuristics for the asymmetric TSP

Approximation Algorithms for the Dubins' Traveling Salesman Problem

Notes for Lecture 24

Decision Diagrams for Solving Traveling Salesman Problems with Pickup and Delivery in Real Time

A constant-factor approximation algorithm for the asymmetric travelling salesman problem

REDUCING GRAPH COLORING TO CLIQUE SEARCH

LEAST COST ROUTING ALGORITHM WITH THE STATE SPACE RELAXATION IN A CENTRALIZED NETWORK

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

Attractor of Local Search Space in the Traveling Salesman Problem

Optimal tour along pubs in the UK

ITSA*: Iterative Tunneling Search with A*

Richard E. Korf. June 27, Abstract. divide them into two subsets, so that the sum of the numbers in

3 INTEGER LINEAR PROGRAMMING

Combining Two Local Searches with Crossover: An Efficient Hybrid Algorithm for the Traveling Salesman Problem

A memetic algorithm for symmetric traveling salesman problem

Complete Local Search with Memory

Theorem 2.9: nearest addition algorithm

Reduction and Exact Algorithms for the Disjunctively Constrained Knapsack Problem

Admissible Search Methods for Minimum Penalty Sequencing of Jobs with Setup Times on One and Two Machines

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

An Adaptive k-opt Method for Solving Traveling Salesman Problem

Polynomial Time Approximation Schemes for the Euclidean Traveling Salesman Problem

(Refer Slide Time: 01:00)

Tolerance based Greedy Heuristics for the Asymmetric TSP. Gerold Jäger Martin Luther University Halle-Wittenberg

1 The Traveling Salesman Problem

3.6.2 Generating admissible heuristics from relaxed problems

An Approximation Algorithm for the Curvature-Constrained Traveling Salesman Problem

Optimizing the Sailing Route for Fixed Groundfish Survey Stations

Chapter 1. Introduction

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

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

Using Penalties instead of Rewards: Solving OCST Problems with Problem-Specific Guided Local Search

Adaptive Tabu Search for Traveling Salesman Problems

Backtracking and Branch-and-Bound

A Two-Dimensional Mapping for the Traveling Salesman Problem

Assignment 3b: The traveling salesman problem

Hybrid approach for solving TSP by using DPX Cross-over operator

Efficient Bids on Task Allocation for Multi-Robot Exploration

Heuristic Approaches to Solve Traveling Salesman Problem

Improving Combinatorial Auctions for Multi-Robot Exploration

3 SOLVING PROBLEMS BY SEARCHING

Seismic Vessel Problem

Complementary Graph Coloring

A Development of Hybrid Cross Entropy-Tabu Search Algorithm for Travelling Repairman Problem

Improved Large-Step Markov Chain Variants for the Symmetric TSP

MVE165/MMG630, Applied Optimization Lecture 8 Integer linear programming algorithms. Ann-Brith Strömberg

Algorithms for Integer Programming

Combinatorial Optimization - Lecture 14 - TSP EPFL

Improving the Efficiency of Depth-First Search by Cycle Elimination

Kalev Kask and Rina Dechter

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

The Traveling Salesman Problem: State of the Art

Using Genetic Algorithms to optimize ACS-TSP

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

Example: Map coloring

A Polynomial-Time Deterministic Approach to the Traveling Salesperson Problem

Polynomial time approximation algorithms

A General Class of Heuristics for Minimum Weight Perfect Matching and Fast Special Cases with Doubly and Triply Logarithmic Errors 1

Job Shop Scheduling Problem (JSSP) Genetic Algorithms Critical Block and DG distance Neighbourhood Search

Homework 2: Search and Optimization

Metaheuristic Development Methodology. Fall 2009 Instructor: Dr. Masoud Yaghini

Improvement heuristics for the Sparse Travelling Salesman Problem

L2: Algorithms: Knapsack Problem & BnB

Transcription:

From: AAAI-00 Proceedings. Copyright 2000, AAAI (www.aaai.org). All rights reserved. Depth-First Branch-and-Bound versus Local Search: A Case Study Weixiong Zhang Information Sciences Institute and Computer Science Department University of Southern California 4676 Admiralty Way, Marina del Rey, CA 90292 Email: zhang@isi.edu Abstract Depth-first branch-and-bound (DFBnB) is a complete algorithm that is typically used to find optimal solutions of difficult combinatorial optimization problems. It can also be adapted to an approximation algorithm and run as an anytime algorithm, which are the subjects of this paper. We compare DFBnB against the Kanellakis-Papadimitriou local search algorithm, the best known approximation algorithm, on the asymmetric Traveling Salesman Problem (ATSP), an important NP-hard problem. Our experimental results show that DFBnB significantly outperforms the local search on large ATSP and various ATSP structures, finding better solutions faster than the local search; and the quality of approximate solutions from a prematurely terminated DFBnB, called truncated DFBnB, is several times better than that from the local search. Introduction and Overview Depth-first branch-and-bound (DFBnB) (Balas & Toth 1985; Papadimitriou & Steiglitz 1982) and local search (Lin & Kernighan 1973; Kanellakis & Papadimitriou 1980; Johnson 1990; Johnson & McGeoch 1997) are the two most applied search methods for solving combinatorial optimization problems, such as planning and scheduling. DFBnB is usually the algorithm for finding optimal solutions of large problems, due to the virtue of its linear-space requirement. Local search, on the other hand, is a method for high-quality approximate solutions, and has been shown to be effective and efficient on many combinatorial optimization problems, such as the symmetric Traveling Salesman Problem (TSP) (Lin & Kernighan 1973; Johnson 1990; Johnson & McGeoch 1997). Besides that DFBnB is an efficient complete algorithm for optimal solutions, it can be used as an approximation algorithm 1, as suggested in (Ibaraki et al. Copyright c 2000, American Association for Artificial Intelligence (www.aaai.org). All rights reserved. 1 We use the term approximation algorithm loosely to refer to an algorithm that is able to find a suboptimal solution. Such an algorithm does not provide a quality guarantee under the definition of ɛ-approximation algorithm (Papadimitriou 1994). 1983). DFBnB explores a state space in a depth-first order, and finds many suboptimal solutions with increasingly better qualities. These solutions are approximations to the optimal solution if DFBnB is terminated prematurely. Furthermore, DFBnB is also an anytime algorithm. An anytime algorithm (Dean & Boddy 1988) can provide a solution at any time during its execution, and is able to improve the quality of the current best solution with more computation. DFBnB finds better suboptimal solutions with more computation and eventually reaches the optimal solution. In contrast to the importance of anytime problem solving and the effort of developing new anytime algorithms (Hoebel & Zilberstein 1997; Horvitz & Zilberstein 1996), DFBnB has not been studied as an approximation or anytime algorithm so far. We study DFBnB as an approximation and anytime algorithm in this paper. We compare it against the Kanellakis-Papadimitriou local search algorithm on the asymmetric Traveling Salesman Problem (ATSP) (Kanellakis & Papadimitriou 1980). This local search algorithm is an adaptation and extension of the well-known Lin-Kernighan local search algorithm (Lin & Kernighan 1973), and the only local search algorithm for the ATSP which we found in the literature. We choose the ATSP due to the following two reasons. First, the ATSP is an important problem in the NPhard class (Papadimitriou & Steiglitz 1982) and has many practical applications. Many difficult combinatorial optimization problems, such as vehicle routing, workshop scheduling and computer wiring, can be formulated and solved as the ATSP (Lawler et al. 1985). Second, despite its importance, little work has been done on the ATSP, which is disproportional to that on the symmetric TSP (see (Johnson & McGeoch 1997) for an excellent survey and references cited). It will be very helpful if information regarding which algorithm should be used for a particular type of ATSP is available to guide algorithm selection in practice. The paper is structured as follows. We discuss the ATSP, DFBnB, truncated DFBnB and the Kanellakis- Papadimitriou local search algorithm in Section 2. In Section 3, we describe various ATSP structures used in our experiments. In Section 4, we investigate initial

tour-construction heuristics. In Section 5, we compare DFBnB with the local search algorithm. We discuss the features of DFBnB and the weakness of the local search algorithm on the ATSP in Section 6. Finally, we conclude and discuss future work in Section 7. The Problem and the algorithms Given n cities, {1, 2,,n}, and a matrix (c i,j ) that defines the costs of pairs of cities, the Traveling Salesman Problem (TSP) is to find a minimum-cost tour that visits each city once and returns to the starting city. When the cost matrix is asymmetric, i.e., the cost from city i to city j is not necessarily equal to the cost from j to i, the problem is the asymmetric TSP (ATSP). DFBnB and truncated DFBnB Branch-and-bound (BnB) (Balas & Toth 1985; Papadimitriou & Steiglitz 1982) solves an ATSP as a state-space search and uses the assignment problem as a lower-bound cost function. The assignment problem (AP) (Martello & Toth 1987; Papadimitriou & Steiglitz 1982) is to assign to each city i another city j, with c i,j as the cost of the assignment, such that the total cost of all assignments is minimized. The AP is a relaxation of the ATSP, since the assignments need not form a complete tour. Therefore, the AP cost is a lower bound on the ATSP tour cost. If the AP solution happens to be a complete tour, it is also the solution to the ATSP. The BnB search takes the original ATSP as the root of the state space and repeats the following two steps. First, solve the AP of the current problem. If the AP solution is not a complete tour, decompose it into subproblems by subtour elimination. Specifically, select a subtour from the AP solution, and generate subproblems by excluding some edges from the assignments, so as to eliminate the subtour. There are many subtour-elimination heuristics (Balas & Toth 1985), and we use the Carpaneto-Toth scheme in our experiments (Carpaneto & Toth 1980), which generates no duplicate subproblem. Next, select as the current problem a new subproblem that has been generated but not yet expanded. This process continues until there is no unexpanded problem, or until all unexpanded problems have costs greater than or equal to the cost of the best complete tour found so far. Note that a subproblem is more constrained than its parent problem, therefore the AP cost to the subproblem must be as much as that to the parent. This means that the AP cost function is monotonically nondecreasing with search depth. The AP to the root node can be computed in O(n 3 ) time; and the APs to non-root nodes can be computed in O(n 2 ) time (Martello & Toth 1987). Depth-first branch-and-bound (DFBnB) is a special BnB that explores nodes or subproblems in a depthfirst order. DFBnB uses an upper bound α on the optimal cost, whose initial value can be infinity or the cost of a tour generated by a polynomial-time heuristic (cf. Section 4). Starting at the root node, DFBnB always selects a recently generated node n to examine next. If the AP solution of n is a complete tour, meaning that n is a leaf node in the search tree, and its cost is less than the current upper bound α, α is revised to the cost of n. Ifn s AP solution is not a complete tour and its cost is greater than or equal to α, n is pruned, because node costs are non-decreasing along a path from the root so that no descendent of n will have a cost smaller than n s cost. Otherwise, n is expanded, generating all its child nodes. To find an optimal goal node quickly, the children n should be searched in an increasing order of their costs. This is called node ordering. We use node ordering in this study. DFBnB can be used as an anytime algorithm. During the depth-first exploration of a state space, DF- BnB may encounter many leaf nodes and improve the best solution at hand continuously. Furthermore, DF- BnB can be stopped at any time during its execution. This is an extension to the M-Cut strategy suggested in (Ibaraki et al. 1983), which terminates BnB with a fixed amount of computation. We call DFBnB with an early termination truncated DFBnB. Among all possible stopping points, of particular interest is where the first leaf node is reached. When no initial tour is used, this simple, special truncated DFBnB is a greedy search in a search space, which always chooses to explore next the minimum-cost child node of the current state until it reaches a leaf node. When a high-quality initial tour is employed, DFBnB may not necessarily encounter a leaf node before the total allocated computation is exhausted. Without confusion, we call DFBnB that terminates when it reaches a leaf node or consumes all allowed computation truncated DFBnB in the rest of this paper. Kanellakis-Papadimitriou local search Local search is based on a fundamental concept called neighborhood structure. If two TSP tours differ by λ edges, and one can be changed to the other by swapping the different edges, one tour is a λ-change neighbor of the other. A neighborhood structure is established by defining the legitimate changes. Within a neighborhood, a tour is a local optimum if it is the best among its neighbors. Given a neighborhood structure, a local search moves from a tour to a neighboring tour that has a smaller cost until a local optimum is reached. The Kanellakis-Papadimitriou local search algorithm for the ATSP (Kanellakis & Papadimitriou 1980) follows the Lin-Kernighan local search algorithm for the symmetric TSP (Lin & Kernighan 1973), and uses primary changes, which change an odd number of edges in a tour. Figure 1 shows a primary 3-change. Primary changes are found by the following sequential process. To construct a primary change of a tour π, we first remove an arc x 1 of π, resulting in a directed path (Figure 2(a)). We then add a new arc y 1, which determines an arc x 2 that needs to be deleted and creates a cycle C 1 (Figure 2(b)). We can immediately break the cycle C 1 by adding a new arc y 2 as shown in Figure 2(c). We

y 3 x 3 y 2 x1 C1 x1 y1 x3 y2 x2 x1 y1 x2 x1 x4 x3 y 1 x 1 x 2 Fig. 1: Primary 3-chage. 2 (a) 2 (b) 2 (c) Fig. 2: Sequential search of primary changes. x2 Fig. 3: Quad change. end up with a directed path, as we started with in Figure 2(a). In general, we call two subsequent pairs of deleted and added arcs, <x i,y i > and <x i+1,y i+1 > for i =1, 3, 5,, a pair of steps, ify i+1 subsequently breaks the cycle produced by y i. The sequential process proceeds in pairs of steps, searching for a primary change by a sequence of cycle creations, each immediately followed by a breaking of the cycle. Obviously, a path can be closed by linking its two end cities, resulting in a complete tour, e.g. Figure 2(c). Another useful change is the quad change, shown in Figure 3. It is not primary, but seems to substantially enrich the neighborhood structure (Kanellakis & Papadimitriou 1980). The Kanellakis-Papadimitriou algorithm uses all the primary changes, obtained sequentially, and quad changes. Starting at an initial tour, it first searches for improving primary 2k + 1 changes, making k as large as possible. To reduce computation, the algorithm requires that it has a favorable change at every pair of steps, i.e., in searching for a better 2k + 1 primary change, it must have already retained a 2k 1 primary change that improves the starting tour. The algorithm also presorts the intercity distances to facilitate the search of favorite primary changes. The algorithm repeatedly searches for primary changes, until none exists. It then repeatedly improves the tour by quad changes, until no improvement is possible. It then starts to search for primary changes again, and the process repeats. If the tour cannot be improved by a primary or a quad change, it is a local optimum. The process can be restarted on different initial tours, until no computation is available. Problem structures In our experiments, we considered the ATSP of various sizes, ranging from a few dozen to 1,000 cities, and used the following five problem structures. (1) Random matrices with c i,j uniformly chosen from {0, 1, 2,,r}, where r = 2 24 1. We used a large intercity cost range r to generate difficult problem instances, because there exists an average-case complexity transition for BnB, i.e., the ATSP is relatively easy to solve when r is small, with respect to the number of cities n; while relatively difficult when r is large (Zhang & Korf 1995; 1996). (2) Matrices with the triangle inequality, c i,j c i,k + c k,j, for all possible i, j, k. We first generated random matrices as in (1), and then used a closure procedure to enforce the triangle inequality. (3) Matrices satisfying the constraint c i,j i j, which are believed to be difficult for a method using the AP cost function (Miller & Pekny 1991). We chose c i,j independently and uniformly from {0, 1,,i j}. (4) Matrices converted from no-wait flowshop scheduling problems for four machines, which are NP-complete (Papadimitriou & Kanellakis 1980). We first generated random scheduling problems, by setting the required processing time of a job on a machine to be an integer independently and uniformly chosen from {0, 1, 2,, 2 16 1}, and then converted the problems into ATSPs using the method suggested in (Reddi & Ramamoorthy 1972). (5) Matrices of individual problems from the TSP library (tsplib.html 2000). Initial Tour Construction Heuristics Local search requires an initial tour to start, and its performance depends on the quality of the initial tour. A high-quality initial tour can also improve the performance of DFBnB. The known polynomialtime tour construction heuristics for the ATSP include nearest neighbor (Frieze, Galbiati, & Maffioli 1982; Johnson 1990), nearest insertion (Frieze, Galbiati, & Maffioli 1982; Johnson 1990), greedy algorithm (Frieze, Galbiati, & Maffioli 1982; Johnson 1990), repeated assignment (Frieze, Galbiati, & Maffioli 1982), and Karp s patching algorithm (Karp 1979). Due to space limit, the interested reader is referred to (Frieze, Galbiati, & Maffioli 1982; Johnson 1990; Karp 1979) for the details of the methods. To find the best tour construction heuristic, we experimentally compared these heuristics using the first four cost matrices described in Section 3. Due to space limit, detailed experimental results are not included here. Our experimental results show that Karp s patching algorithm has the best tour quality, followed by repeated assignment, greedy, nearest neighbor, and nearest insertion. The quality of the tours from the patching algorithm is more than an order of magnitude smaller than those from the other methods on all problem structures that we considered. Therefore, Karp s patching algorithm was used in our experimental comparison of DFBnB and local search.

Experimental Results We implemented the Kanellakis-Papadimitriou local search algorithm and DFBnB in C and compared them on a Sun Ultra Sparc 10 workstation. The algorithms used an initial tour from Karp s patching algorithm. Truncated DFBnB versus local search We first compared truncated DFBnB and the local search algorithm for finding approximate solutions. Table 1 summarizes the results on the ATSP with the first four cost matrices, i.e., random matrices, matrices with triangle inequality, matrices with c i,j i j, and matrices converted from no-wait flowshop scheduling problems. In this set of experiments, truncated DFBnB did not use a limit on the total amount of computation, but terminated when it reached a leaf node, a node whose AP solution is a complete tour. Table 1 shows the tour qualities and CPU times of these two algorithms, averaged over 500 instances for 100- to 500-city ATSPs, and 100 instances for 600- to 1,000-city ATSPs. The tour quality is expressed as the error of tour costs relative to the AP lower bounds. The relative error of truncated DFBnB is less than 1.8% for 100-city instances, and decreases to less than 0.20% for 1,000-city instances on all four types of cost matrices. Across all problem structures and sizes we examined, the average tour quality of truncated DFBnB is better than that of the local search, and the average execution time of truncated DFBnB is less than that of the local search. Table 1 also shows the percentage of the instances on which truncated DFBnB finds better tours than the local search, as well as the percentage of the instances on which the local search is better than truncated DFBnB (labeled as win). The results show that on most problem instances, truncated DFBnB outperforms the local search. We also compared truncated DFBnB with the local search on all ATSP instances in the TSP library (tsplib.html 2000). In the first set of experiments, the termination condition of truncated DFBnB is when it reaches a leaf node. The experimental results are shown in Table 2, where AP is the cost of the assignment problem, patch the tour cost from the patching algorithm, LS the tour cost from the local search, LS(millisec.) the CPU time of the local search in milliseconds, TDFBnB1 the tour cost from truncated DF- BnB, TDFBnB1(millisec.) the CPU time of truncated DFBnB, TDFBnB1 win the indicator if truncated DF- BnB finds better tours, and LS win the indicator if the local search finds better tours. As the results show, truncated DFBnB is not very effective on some of these problems. We observed that these problems are the ones on which the difference between the tour cost from the patching algorithm and the AP cost is relatively large. This may be due to some semisymmetric structures embedded in the problems, which defeat the effectiveness of the assignment problem. Truncated DFBnB can be enhanced by Karp s patching algorithm. The patching algorithm can be applied relative error of tour cost (%) 5.0 4.5 4.0 3.5 3.0 2.5 2.0 1.5 1.0 0.5 0.0 depth-first branch-and-bound local search 300-city random ATSP with costs from 24 {0,1,2,..., 2-1} 1 3 10 30 100 300 1000 CPU time (millisecond) Fig. 4: DFBnB vs. local search on 300-city random ATSP. to a node that needs to be expanded by DFBnB, i.e. a node whose AP cost is less than the current upper bound. The application of the patching algorithm has a great impact on the total running time of truncated DFBnB as well as the quality of the best tour that can be found. By applying the patching algorithm, a tour better than the best solution at hand may be found, which reduces the value of the current upper bound. Consequently, a smaller upper bound prevents truncated DFBnB from reaching a leaf node soon, which means that truncated DFBnB needs to explore more nodes. The results of the experiment are shown in the last four columns of Table 2, where the enhanced truncated DFBnB is labeled as TDFBnB2. The results show that the enhanced truncated DFBnB is very effective, increasing the number of problems on which truncated DFBnB finds better tours than the local search from six to 11. Anytime DFBnB versus local search To better understand DFBnB and the local search algorithm, we compared the quality of the tours that they find over the time of their executions on randomly generated ATSPs. That is, we considered the anytime performance of these algorithms. Figure 4 shows the result on the 300-city ATSP with random cost matrices, averaged over 100 instances. The horizontal axis of Figure 4 is the CPU time, in a logarithmic scale, and the vertical axis is the average error of tour costs relative to the optimal tour costs. Both algorithms start with a complete tour generated by Karp s patching algorithm. Since the local search typically finishes earlier than DF- BnB, which finds an optimal tour at the end, we restart the local search on initial tours generated by the other tour construction heuristics of Section 4 in the order of repeated assignment, greedy algorithm, nearest neighbor and nearest insertion until the local search uses the same amount of time as used by DFBnB. However, the local search generally fails to improve the best tour found based on the patching algorithm, since these tour construction heuristics are not very effective. Figure 4 shows that DFBnB significantly outper-

# of cities 100 200 300 400 500 600 700 800 900 1,000 error LS 6.352 5.228 4.312 3.898 3.675 3.323 3.157 2.760 2.841 2.628 (%) TDFBnB 1.798 0.930 0.650 0.491 0.375 0.291 0.266 0.251 0.209 0.189 random time LS 0.022 0.108 0.296 0.604 1.036 1.658 2.495 3.164 4.190 5.798 matrices (sec.) TDFBnB 0.013 0.072 0.195 0.426 0.756 1.178 1.805 2.434 3.450 4.621 win LS 2.60 0.60 0.20 0.80 0.20 0.00 0.00 1.00 0.00 0.00 (%) TDFBnB 95.40 98.20 99.40 98.60 99.60 99.60 99.80 99.00 100.00 100.00 error LS 1.066 0.629 0.506 0.426 0.343 0.305 0.275 0.264 0.238 0.200 matrices (%) TDFBnB 0.660 0.334 0.235 0.172 0.138 0.113 0.105 0.100 0.088 0.087 with time LS 0.024 0.118 0.322 0.659 1.097 1.870 2.595 3.560 4.846 6.267 triangle (sec.) TDFBnB 0.014 0.068 0.191 0.392 0.705 1.144 1.603 2.389 3.327 5.552 inequality win LS 10.20 4.80 5.80 4.00 3.60 3.00 2.00 1.00 1.00 1.00 (%) TDFBnB 59.00 60.60 61.00 57.80 63.20 60.60 63.00 68.00 62.00 60.00 error LS 3.445 2.558 2.113 1.898 1.605 1.543 1.522 1.336 1.311 1.250 matrices (%) TDFBnB 1.649 0.863 0.587 0.466 0.357 0.298 0.255 0.215 0.206 0.194 with time LS 0.036 0.206 0.613 1.295 2.294 4.043 5.840 8.103 11.100 15.096 c i,j i j (sec.) TDFBnB 0.023 0.127 0.365 0.740 1.267 2.141 3.148 4.606 5.981 7.901 win LS 10.60 4.20 2.20 1.20 1.75 1.40 1.00 0.00 2.00 1.00 (%) TDFBnB 83.00 94.20 95.80 97.40 97.00 98.20 99.00 100.00 98.00 99.00 error LS 0.035 0.013 0.008 0.006 0.004 0.003 0.003 0.003 0.002 0.002 no-wait (%) TDFBnB 0.030 0.011 0.007 0.005 0.003 0.003 0.002 0.002 0.002 0.001 flowshop time LS 0.063 0.468 1.797 4.812 9.881 19.631 33.353 49.026 70.553 98.802 scheduling (sec.) TDFBnB 0.029 0.177 0.543 1.213 2.222 3.891 5.748 8.552 2.249 5.781 win LS 11.80 9.60 7.60 7.20 8.20 7.40 6.00 7.00 6.00 7.00 (%) TDFBnB 34.80 40.40 45.80 50.20 47.00 52.60 48.00 51.00 49.00 55.00 Table 1: Truncated DFBnB vs. local search. forms the local search on the ATSP with random cost matrices. Similar results have also been observed on other problem sizes and structures. DFBnB typically finds better tours earlier than the local search. This is partially because the AP can be computed in O(n 2 ) time on a non-root node of the search tree (Martello & Toth 1987), rather than in O(n 3 ) time on the root node. Based on our experiments, the AP on a non-root node can be computed in roughly one tenth, one twentieth, and one seventeenth of the CPU time required for the AP of the initial ATSP with random cost matrices, matrices with triangle inequality, and matrices with c i,j i j, respectively. Thanks to the superior performance of truncated DFBnB, DFBnB can obtain a high-quality tour very early in its execution, which can further help to restrict the search to the areas where better solutions can be found. Discussions The superior performance of DFBnB and truncated DFBnB on the ATSP is primarily due to two factors. The first is the assignment problem (AP) lower-bound cost function. As observed in previous research (Balas & Toth 1985) and in our own experiments, this cost function gives a superb estimation on the actual ATSP tour cost, approaching the ATSP cost from below as problem size increasing. In our experiments on the random ATSP with the elements of cost matrices independently and uniformly chosen from {0, 1, 2,, 2 24 1}, the cost of the AP is 99.090% of the ATSP cost on average for 100-city instances, 99.816% for 500-city instances, and 99.916% for 1,000-city instances. A good lower-bound cost function can usually give rise to a strong branch-and-bound algorithm by providing a good node ordering. This has also been observed on number partitioning using branch-and-bound with Karmarkar-Karp heuristics (Korf 1998). The second factor that leads to the superb performance of DFBnB is that the state space under BnB subtour elimination with the decomposition rules of (Carpaneto & Toth 1980) is a shallow but bushy tree without duplicate nodes. Our experiments revealed that with random cost matrices, the depth of an ATSP state-space tree is typically less than n/20, and its average branching factor of the nodes is around n/5. For a random 500-city ATSP for instance, the tree depth is less than 25 and the branching factor is around 100. Since leaf nodes are shallow, they can be reached easily, so as to give rise to solutions quickly. The poor performance of the Kanellakis- Papadimitriou algorithm for the ATSP indicates that its local-search neighborhood structure may be restricted. Comparing to the symmetric TSP, there is no primary change with an even number of edges in the ATSP. Thus, finding a better primary change of large steps is difficult. Furthermore, the local search searches for increasingly better primary changes, which may substantially curtail the effectiveness of the algorithm. In addition, to find favorable pairs of steps, edges need to be sorted, further preventing the local search to quickly improve the initial tour, as shown in Figure 4.

TDF- TDF- TDF- TDF- TDF- TDFproblem AP patch LS LS BnB1 BnB1 BnB1 LS BnB2 BnB2 BnB2 LS (millisec.) (millisec.) win win (millisec.) win win xbr17 0 40 39 0 39 1 39 1 ft53 5931 7932 7364 0 7917 8 x 7372 9 x ft70 37978 39401 38947 2 38855 2 x 38855 2 x ftv170 2631 2793 2783 5 2776 14 x 2767 153 x ftv33 1185 1455 1390 0 1443 0 x 1329 3 x ftv35 1381 1493 1493 1 1490 2 x 1487 3 x ftv38 1438 1550 1550 0 1547 2 x 1546 5 x ftv44 1521 1737 1699 0 1663 1 x 1613 4 x ftv47 1652 1787 1784 0 1787 8 x 1787 8 x ftv55 1435 1680 1649 0 1675 1 x 1624 8 x ftv64 1721 1970 1851 1 1853 0 x 1839 20 x ftv70 1766 2016 1990 1 1999 2 x 1954 21 x kro124p 33978 40183 36787 5 40180 18 x 37241 43 x p43 43 5629 5625 1 5623 1 x 5623 1 x rbg323 1326 1326 1326 71 1326 32 1326 32 rbg358 1163 1163 1163 79 1163 33 1163 33 rbg403 2465 2465 2465 302 2465 164 2465 164 rbg443 2720 2720 2720 382 2720 183 2720 183 ry48p 12517 15430 14792 1 15285 3 x 14735 5 x SUM 6 8 11 3 Table 2: Truncated DFBnB vs. local search on problems from TSP library. Conclusions and Future Work Depth-first branch-and-bound (DFBnB) is not only a general technique for optimally solving difficult NPcomplete combinatorial optimization problems, but can also be adapted to efficient anytime and approximation algorithms. In this paper, we studied DFBnB and truncated DFBnB, a DFBnB with an early termination, on the asymmetric Traveling Salesman Problem (ATSP) of various structures and sizes. Specifically, we experimentally compared DFBnB and truncated DFBnB against the Kanellakis-Papadimitriou local search algorithm, the best known approximation algorithm for the ATSP. Our experimental results showed that DFBnB outperforms the local search algorithm, finding better ATSP tours significantly earlier than the local search, on large ATSP and various problem structures. The contribution of this work is twofold. First, to the specific problem of the ATSP, it provides a thorough comparison of DFBnB and the local search, showing that DFBnB and truncated DFBnB are the choices of algorithms for the problem in practice. Second, beyond the specific problem of the ATSP, this work shows that DFBnB, a systematic approach, is also well suited for approximate and anytime problem solving. The results of this paper demonstrated that DFBnB can compete with and outperform a local search algorithm for finding both approximation and anytime solutions. The poor performance of the Kanellakis-Papadimitriou algorithm suggests two possible future research for the ATSP. One is to define more effective localsearch neighborhood structures, and the other is to develop strategies for escaping local minima, such as random walk, to strengthen a local search algorithm. We would like to conclude the paper by pointing out that one of the major results of the paper, i.e., a systematic search may significantly outperform a nonsystematic search, is not an isolated observation on a particular problem. Similar observations have been made on number partitioning (Korf 1998) and random coding networks (Dechter & Kask ; Kask & Dechter 1999), on which DFBnB significantly outperforms the best known stochastic search. Our future research will concentrate on characterizing the common features of these different application domains and identifying the conditions under which a systematic search is able to outperform a nonsystematic search. Acknowledgments This work was funded by NSF Grant #IRI-9619554. References Balas, E., and Toth, P. 1985. Branch and bound methods. In The Traveling Salesman Problem. Essex, England: John Wiley & Sons. 361 401. Carpaneto, G., and Toth, P. 1980. Some new branching and bounding criteria for the asymmetric traveling salesman problem. Management Science 26:736 743. Dean, T., and Boddy, M. 1988. An analysis of timedependent planning. In Procceedings of the 7th National Conference on Artificial Intelligence (AAAI- 88), 49 54. Dechter, R., and Kask, K. Personal communications. 1999-2000.

Frieze, A.; Galbiati, G.; and Maffioli, F. 1982. On the worst-case performance of some algorithms for the asymmetric traveling salesman problem. Network 12:23 39. Hoebel, L., and Zilberstein, S., eds. 1997. Proceedings of the AAAI Workshop on Building Resource-Bounded Reasoning Systems. Providence, RI: AAAI. Horvitz, E., and Zilberstein, S., eds. 1996. Proceedings of the AAAI Fall Symposium on Flexible Computation in Intelligent Systems: Results, Issues and Opportunities. Cambridge, MA: AAAI. Ibaraki, T.; Muro, S.; Murakami, T.; and Hasegawa, T. 1983. Using branch-and-bound algorithms to obtain suboptimal solutions. Zeitchrift für Operations Research 27:177 202. Johnson, D. S., and McGeoch, L. A. 1997. The Traveling Salesman Problem: A case study. In Local Search in Combinatorial Optimization. John Wiley & Sons. 215 310. Johnson, D. S. 1990. Local optimization and the traveling salesman problem. In Proc. of the 17th Intern. Colloquium on Automata, Languages and Programming, 446 461. Kanellakis, P. C., and Papadimitriou, C. H. 1980. Local search for the asymmetric traveling salesman problem. Operations Research 28:1086 1099. Karp, R. M. 1979. A patching algorithm for the nonsymmetric Traveling-Salesman Problem. SIAM Journal on Computing 8:561 573. Kask, K., and Dechter, R. 1999. Stochastic local search for bayesian networks. In Proc. Intern. Workshop on AI and Statistics. Korf, R. E. 1998. A complete anytime algorithm for number partitioning. Artificial Intelligence 105:133 155. Lawler, E. L.; Lenstra, J. K.; Kan, A. H. G. R.; and Shmoys, D. B. 1985. The Traveling Salesman Problem. Essex, England: John Wiley & Sons. Lin, S., and Kernighan, B. W. 1973. An effective heuristic algorithm for the traveling salesman problem. Operations Research 21:498 516. Martello, S., and Toth, P. 1987. Linear assignment problems. Annals of Discrete Math. 31:259 282. Miller, D. L., and Pekny, J. F. 1991. Exact solution of large asymmetric traveling salesman problems. Science 251:754 761. Papadimitriou, C. H., and Kanellakis, P. C. 1980. Flowshop scheduling with limited temporary storage. Journal of ACM 27:533 549. Papadimitriou, C. H., and Steiglitz, K. 1982. Combinatorial Optimization: Algorithms and Complexity. Englewood Cliffs, NJ: Prentice-Hall. Papadimitriou, C. H. 1994. Computational Complexity. Reading, MA: Addison-Wesley. Reddi, S. S., and Ramamoorthy, C. V. 1972. On the flowshop sequencing problem with no wait in process. Operational Research Quarterly 23:323 331. ftp://ftp.zib.de/pub/packages/mptestdata/tsp/tsplib/tsplib.html. Zhang, W., and Korf, R. E. 1995. Performance of linear-space search algorithms. Artificial Intelligence 79:241 292. Zhang, W., and Korf, R. E. 1996. A study of complexity transitions on the asymmetric Traveling Salesman Problem. Artificial Intelligence 81:223 239.