[Paper Review] All Colors Shortest Path Problem
This paper introduces the All Colors Shortest Path (ACSP) problem, defined as finding the shortest path in an edge-weighted undirected graph where each vertex has a pre-assigned color, and the path must visit at least one node of every color. The authors prove ACSP is NP-hard and inapproximable within a constant factor, and propose novel heuristics based on LP relaxation, simulated annealing, ant colony optimization, and genetic algorithms, with experiments showing GA-ACSP achieves the best time-to-solution ratio while maintaining competitive solution quality.
All Colors Shortest Path problem defined on an undirected graph aims at finding a shortest, possibly non-simple, path where every color occurs at least once, assuming that each vertex in the graph is associated with a color known in advance. To the best of our knowledge, this paper is the first to define and investigate this problem. Even though the problem is computationally similar to generalized minimum spanning tree, and the generalized traveling salesman problems, allowing for non-simple paths where a node may be visited multiple times makes All Colors Shortest Path problem novel and computationally unique. In this paper we prove that All Colors Shortest Path problem is NP-hard, and does not lend itself to a constant factor approximation. We also propose several heuristic solutions for this problem based on LP-relaxation, simulated annealing, ant colony optimization, and genetic algorithm, and provide extensive simulations for a comparative analysis of them. The heuristics presented are not the standard implementations of the well known heuristic algorithms, but rather sophisticated models tailored for the problem in hand. This fact is acknowledged by the very promising results reported.
Motivation & Objective
- To define and formally investigate the All Colors Shortest Path (ACSP) problem, a novel variant of shortest path problems where each vertex has a color and the path must include at least one node of every color.
- To establish the computational complexity of ACSP by proving it is NP-hard and cannot be approximated within a constant factor unless P = NP.
- To develop and evaluate a suite of tailored heuristic algorithms specifically designed for ACSP, including LP-relaxation-based, simulated annealing, ant colony optimization, and genetic algorithm approaches.
- To conduct extensive simulations comparing the performance of the proposed heuristics in terms of solution quality, running time, and scalability across various graph sizes and color distributions.
Proposed method
- Formulate ACSP as an Integer Linear Programming (ILP) problem with constraints ensuring at least one occurrence of each color in the path.
- Develop three LP-relaxation heuristics: LP_xACSP, LP_fACSP, and LP_f/xACSP, using iterative rounding to generate feasible paths from relaxed solutions.
- Design a simulated annealing-based heuristic (SA-ACSP) that explores the solution space using temperature-controlled random moves to escape local optima.
- Implement an ant colony optimization (ACO-ACSP) algorithm where artificial ants construct paths based on pheromone trails and heuristic information, with pheromone update rules tailored to color coverage.
- Propose a genetic algorithm (GA-ACSP) with custom encoding, selection, crossover, and mutation operators optimized for ACSP, including population size tuning via empirical evaluation.
- Conduct comparative experiments on randomly generated graphs with varying numbers of nodes (n=50, 100, 200) and colors (c=10 to 75), using ILP results as a baseline for optimality comparison.
Experimental results
Research questions
- RQ1Is the All Colors Shortest Path problem NP-hard, and does it admit a constant-factor approximation under standard complexity assumptions?
- RQ2How do different heuristic strategies—LP relaxation, simulated annealing, ant colony optimization, and genetic algorithms—perform in terms of solution quality and runtime for ACSP?
- RQ3Which heuristic configuration yields the best trade-off between solution cost and computational time across diverse graph and color distributions?
- RQ4Can tailored metaheuristics outperform standard implementations when applied to this novel problem?
Key findings
- ACSP is proven to be NP-hard and inapproximable within any constant factor unless P = NP, establishing its computational intractability.
- Among LP-based heuristics, LP_f/xACSP achieves the best balance of solution quality and runtime, with average costs within 1.5x of optimal on tested instances.
- Simulated annealing (SA-ACSP) outperforms ant colony optimization (ACO-ACSP) on medium-sized graphs (n=50, 100), achieving lower average path costs.
- For larger graphs (n=200), ACO-ACSP produces better solutions than SA-ACSP, indicating better exploration capabilities on complex landscapes.
- Genetic algorithm (GA-ACSP) achieves the fastest runtime across all graph sizes, with average computation times under 6 seconds on n=200 graphs, while maintaining solution quality comparable to the other metaheuristics.
- The optimal population size for GA-ACSP was empirically determined to be 600, balancing solution quality and computational cost.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.