arXiv · 2409.09734
Complexity of the Swap Median and Swap Closest Problems
Abstract
Genome rearrangement distances provide a combinatorial framework for comparing genomes represented as permutations. Although the swap distance between two permutations is polynomial-time computable, optimization over multiple permutations is harder. Given three inputs, Swap Median minimizes the sum of distances to them, while Swap Closest minimizes the maximum distance. We prove that the decision version of Swap Median is NP-complete for three permutations, resolving a question open since Eriksen (2007). The reduction considers instances in which a solution exists exactly when the triangle-inequality lower bound is attained. We represent pairs of cycle decompositions by a graph whose vertices correspond to swaps that simultaneously break cycles and whose edges encode incompatible swaps. This graph class contains all 2-subdivision graphs; the hardness of Maximum Independent Set on this class then implies NP-completeness. We extend the construction to show that Swap Closest is also NP-complete for three inputs, strengthening Popov's result for an arbitrary number of permutations. Finally, the same graph-theoretic framework yields approximation procedures: selecting compatible cycle-breaking swaps improves the standard 4/3 metric bound for Swap Median and the standard 2 metric bound for Swap Closest by explicit terms relative to the median lower bound and input diameter, respectively.
Explore related subjects
Keep this discovery
Luís Cunha, Thiago Lopes, Arnaud Mary. 2024-09-15. Complexity of the Swap Median and Swap Closest Problems. https://arxiv.org/abs/2409.09734
Cite the original work for its findings. Save a collection to share your selection of sources.