Mathematics (Mar 2024)

Efficient Maintenance of Minimum Spanning Trees in Dynamic Weighted Undirected Graphs

  • Mao Luo,
  • Huigang Qin,
  • Xinyun Wu,
  • Caiquan Xiong,
  • Dahai Xia,
  • Yuanzhi Ke

DOI
https://doi.org/10.3390/math12071021
Journal volume & issue
Vol. 12, no. 7
p. 1021

Abstract

Read online

This paper presents an algorithm for effectively maintaining the minimum spanning tree in dynamic weighted undirected graphs. The algorithm efficiently updates the minimum spanning tree when the underlying graph structure changes. By identifying the portion of the original tree that can be preserved in the updated tree, our algorithm avoids recalculating the minimum spanning tree from scratch. We provide proof of correctness for the proposed algorithm and analyze its time complexity. In general scenarios, the time complexity of our algorithm is comparable to that of Kruskal’s algorithm. However, the experimental results demonstrate that our algorithm outperforms the approach of recomputing the minimum spanning tree by using Kruskal’s algorithm, especially in medium- and large-scale dynamic graphs where the graph undergoes iterative changes.

Keywords