计算机科学 ›› 2026, Vol. 53 ›› Issue (6A): 250300087-7.doi: 10.11896/jsjkx.250300087

• 人工智能 • 上一篇    下一篇

基于频率图的旅行商问题稀疏图生成方法

杨雅辉, 王永   

  1. 华北电力大学新能源学院 北京 102206
  • 出版日期:2026-06-16 发布日期:2026-06-12
  • 通讯作者: 王永(yongwang@ncepu.edu.cn)
  • 作者简介:(1523313807@qq.com)
  • 基金资助:
    中央高校基本科研业务费专项资金(2024JC006)

Sparse Graph Generation Method for the Traveling Salesman Problem Based on Frequency Graphs

YANG Yahui, WANG Yong   

  1. School of New Energy,North China Electric Power University,Beijing 102206,China
  • Published:2026-06-16 Online:2026-06-12
  • About author:YANG Yahui,born in 2003,undergra-duate.His main research interests include the application of computer simulation technology,exploration of heuristic methods for the traveling salesman problem,and the design and layout of wind farms.
    WANG Yong,born in 1978,Ph.D,professor.His main research interests include traveling salesman problem and related methodologies.
  • Supported by:
    Fundamental Research Funds for the Central Universities(2024JC006).

摘要: 旅行商问题(Traveling Salesman Problem,TSP)是一个难解问题,最优解的搜索空间是问题规模的指数函数。为了减小最优解(最优哈密顿圈)的搜索空间,提出了一种新的优化策略,该策略基于频率图生成TSP稀疏图,大幅度缩小了最优哈密顿圈的搜索空间,从源头上降低了问题的求解难度。首先根据完全权重图计算出四顶点局部最优路径(Local Optimal Paths with Four Vertices,LOP4s)。然后统计并计算LOP4s中各边出现的频次,记为对应边的频率,得到频率图,接着根据频率图计算TSP稀疏图,具体地:首先,将所有边的平均频率(Average Frequency,AF)设为频率阈值,删除频率低于AF的边,生成第一代稀疏图;随后,依据不同的顶点度阈值m(取值范围为5至min{n/4,45})进行删边,先累加每个顶点连接的所有边的频率,作为每个顶点的频率,再根据顶点频率对顶点进行排序,依次删除频率最大的顶点连接的频率最小的边,并使得各顶点的度均不小于m,从而得到多个第二代稀疏图。最后,通过叠加融合第二代稀疏图,并提出双重频率概念确定保留的边,得到第三代稀疏图。算法在20个标准TSP数据集上均表现出较好的性能。实验结果表明,第三代稀疏图均保留了最优哈密顿圈中的边,且稀疏图中边的数量远小于完全图中边的数量,大大减小了最优哈密顿圈的搜索空间。通过在线Concorde系统,分别根据完全图和稀疏图搜索最优哈密顿圈,发现在稀疏图上的搜索时间小于在完全图上的搜索时间。本研究为降低TSP难度提供了新的研究视角,并为未来与其他启发式算法或机器学习技术的结合求解TSP奠定了基础。

关键词: 旅行商问题(TSP), 最优哈密顿圈(OHC), 频率图, 稀疏图

Abstract: TSP is a challenging problem where the search space for the optimal solution grows exponentially according to the problem size.To reduce the search space for the optimal Hamiltonian cycle,a novel optimization strategy is proposed.This strategy generates a sparse TSP graph based on frequency graphs,significantly reducing the search space of the optimal Hamiltonian cycle and lowering the problem's complexity.Firstly,LOP4s are computed from the weighted complete graph.The frequencies of edges appearing in the LOP4s are then calculated to form a frequency graph.Based on this frequency graph,a sparse graph for TSP is constructed.Initially,AF of all edges is set as the frequency threshold,and edges with frequencies below AF are removed to generate the sparse graph of the first-generation.Subsequently,further edge deletions are performed according to different vertex degree thresholds m ranging from 5 to min{n/4,45}).Specifically,the frequencies of all edges connected to each vertex are summed to determine the corresponding vertex frequency.Vertices are sorted by their frequencies,and the edges having the least frequency and connecting the vertices with the highest-frequency are iteratively deleted in case that the degree of each vertex is no less than m.This process yields multiple sparse graphs of the second-generation.Finally,the sparse graphs of the second-generation are added together,and a dual-frequency is introduced to determine which edges to retain for producing the sparse graph of the third-generation.Experiments conducted on 20 standard TSP datasets demonstrate the algorithm's effectiveness.Results show that the sparse graph of the third-generation retains all edges in the optimal Hamiltonian cycle while it contains a small number of edges in the complete graph,which greatly reduces the search space of the optimal Hamiltonian cycle.Based on the online Concorde system,the optimal Hamiltonian cycles are searched using both the complete graph and the sparse graph.It is observed that the search time based on the sparse graph is shorter than that according to the complete graph.This study provides a new perspective for reducing the difficulty of TSP and lays a foundation for future integration with other heuristic algorithms or machine learning techniques to solve TSP.

Key words: Traveling Salesman Problem(TSP), Optimal Hamiltonian Cycle(OHC), Frequency graph, Sparse graph

中图分类号: 

  • TP301
[1] ZHANG X P,LI X C.Improved Butterfly Optimization Algorithm for Solving TSP Problem [J].Journal of Henan Institute of Science and Technology(Natural Science Edition),2025,53(1):51-57.
[2] WEI W X.Research on Application of an Improved Ant Colony Algorithm in the Traveling Salesman Problem [D].Jingdezhen:Jingdezhen Ceramic Institute,2024.
[3] WANG Z Q.Research and Optimization on Methods for SolvingTSP Problems Using Deep Reinforcement Learning [D].Lanzhou:Northwest Normal University,2023.
[4] YANG S Y,ZHANG H.Swarm Intelligence and BiomimeticComputing.Implementation with Matlab Technology [M].Beijing:Publishing House of Electronics Industry,2012:157-166.
[5] ZHENG S.Research on New Heuristic Algorithms for Solving the Traveling Salesman Problem and Its Derivative Problems [D].Tianjin:Tianjin University,2016.
[6] WANG Y,CUI Y.Edge-cutting Method for the Traveling Salesman Problem Based on Shortest Path within Optimal Quadrilateral Cycle [J].Computer Science,2022,49(S1):199-205.
[7] ZHU Y Y,WANG Y J.Hybrid Particle Swarm Optimization Algorithm for Solving Complex Traveling Salesman Problems [J].Light Industry Machinery,2015,33(3):42-45,49.
[8] WANG Y,REMMEL J B.A Binomial Distribution Model forthe Traveling Salesman Problem Based on Frequency Quadrilaterals[J].Journal of Graph Algorithms and Applications,2016,20(2):411-434.
[9] WANG Y.Application of Group Theory-Based Frequency Mapsin the Traveling Salesman Problem [J].Journal of Zhengzhou University(Science Edition),2025,57(1):74-80.
[10] SHANG R H.Introduction to Intelligent Algorithms [M].Beijing:Tsinghua University Press,2021:21-68.
[11] HE Y.Analysis of the Validity of Network Connectivity in BrainFunctional Areas Based on Bioelectrical Impedance [D].Shen-yang:Shenyang University of Technology,2024.
[12] SHEN Y J.Interpretation of Language Usage Differences inCross-Racial Marriages from the Perspective of Interpersonal Functions-Based on the Analysis of Random Forest Regression Algorithm [J].Language and Culture Research,2025,33(2):244-248.
[13] CHEN K S,XIAN S D,GUO P.Adaptive Simulated Annealing Algorithm for Solving Traveling Salesman Problem [J].Control Theory & Applications,2021,38(2):245-254.
[14] LUO X F,WU H Q.Mobile IoT Perception and Sensing Positioning Based on DV-Hop Correction Algorithm [J].Journal of Terahertz Science and Electronic Information,2025,23(2):165-169.
[15] CHEN X L,HUANG Y C,TAN Y K.Research on Genetic Algorithm Optimization of Metro Skip-Stop Scheduling Model [J].Science and Technology & Innovation,2025(4):43-46.
[16] ZHANG C X.Multi-objective Optimization of UAV-assistedVehicle Delivery Routes under Time-varying Networks [D].Chongqing:Chongqing Jiaotong University,2024.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!