A Study of Five Parallel Approaches to a Genetic Algorithm for the Traveling Salesman Problem

L. Wang, Anthony A. Maciejewski, Howard Jay Siegel, Vwani Roychowdhury, B. D. EldridgeIntelligent 2005

Abstract

This paper presents a comparative study of five different coarse-grained parallel genetic algorithms (PGAs) using the traveling salesman problem (TSP) as the case application. All of these PGAs are based on the same baseline serial genetic algorithm, implemented on the same parallel machine (IBM SP2), tested on the same problem instances, and started from the same set of initial populations. Based on these experiments, a PGA that combines a new subtour technique with a known migration approach is identified to be the best for the traveling salesman problem among the five PGAs being compared.

Introduction

The Traveling Salesman Problem (TSP) remains a fundamental challenge in combinatorial optimization, characterized by its NP-hard complexity. While Serial Genetic Algorithms (SGAs) have proven effective at navigating the vast search spaces of such problems to find near-optimal solutions, their computational demands grow significantly with the number of cities. Parallel Genetic Algorithms (PGAs) offer a promising avenue for acceleration by distributing the evolutionary process across multiple processing units. This study evaluates five distinct parallelization strategies to identify the most efficient architecture for solving 100-city TSP instances.

The Memetic Baseline and Local Search Heuristics

The foundation of all five parallel variants is a "memetic" algorithm. Unlike standard GAs that rely solely on crossover and mutation, a memetic algorithm incorporates local search heuristics to "polish" individuals within each generation. This hybrid approach ensures that the global search capabilities of the GA are complemented by the fine-tuning of local optimization.

Two primary heuristics were employed: 2-opt and Or-opt. The 2-opt heuristic (Figure 1) works by identifying and removing edge crossings, effectively reversing a segment of the tour to reduce its total length. The Or-opt heuristic (Figure 2) is more complex, involving the relocation of a contiguous segment of cities—typically one, two, or three cities—to a different position in the tour where it results in a shorter overall path.

The 2-opt heuristic improves a tour by removing edge crossings, effectively swapping segments to reduce total distance.
The three-city Or-opt heuristic relocates a contiguous segment of cities to a different position in the tour to find local optima.

Parallel Genetic Algorithm Variants

The researchers implemented five parallel architectures on an IBM SP2 supercomputer to compare their performance:

  1. Independent PGA: This serves as the control group, where each processor runs an independent SGA with no inter-processor communication.
  2. Migration PGA: This model introduces periodic communication. Every five iterations, processors exchange their best-performing chromosomes, allowing high-quality genetic traits to propagate throughout the cluster.
  3. Partitioned PGA: This approach attempts to divide the search space mathematically. Each processor is restricted to exploring a disjoint set of possible tours.
  4. Segmentation PGA: A novel approach that focuses on evolving "subtours" rather than full tours initially. By optimizing smaller segments of the problem, the algorithm builds high-quality components that are later recombined into full solutions.
  5. Segmentation-Migration PGA: A hybrid model that combines the subtour evolution of the Segmentation approach with the chromosome swapping of the Migration approach.

Results and Analysis

The experimental results, conducted on standard TSPLIB instances such as Krolak A and Reinelt, revealed significant differences in performance. The Partitioned PGA was found to be the least effective; by forcing processors into rigid, disjoint zones, it often trapped 15 out of 16 processors in regions of the search space that did not contain the global optimum.

In contrast, the Segmentation-Migration (Hybrid) approach emerged as the superior strategy. It achieved an average speedup of 13.83x on 16 processors. The efficiency of the Segmentation logic stems from the fact that local search heuristics like Or-opt are computationally much cheaper when applied to small subtours (e.g., 6 cities) than to full 100-city tours. By the time these subtours are merged, they already represent highly optimized "building blocks."

Furthermore, the inclusion of Migration acted as a vital synchronization mechanism. In non-communicating models, the total runtime is often dictated by the slowest-converging processor. Migration allows the entire cluster to "level set" on the best-known solutions, leading to faster overall convergence and reduced execution times.

Conclusion

This study demonstrates that the most effective parallelization for the TSP is not simply a matter of adding more processors, but of intelligently managing communication and problem decomposition. The Hybrid Segmentation-Migration PGA provides a robust balance between maintaining genetic diversity and ensuring rapid convergence toward optimal solutions. Future research should explore the scalability of the segmentation technique for much larger TSP instances and the potential for adaptive migration intervals.

Summary updated

BibTeX
@inproceedings{wang2005study,
  author = {L. Wang and Anthony A. Maciejewski and Howard Jay Siegel and Vwani Roychowdhury and B. D. Eldridge},
  title = {{A Study of Five Parallel Approaches to a Genetic Algorithm for the Traveling Salesman Problem}},
  booktitle = {Intelligent},
  year = {2005},
  doi = {10.1080/10798587.2005.10642906},
}
Figure