E3S Web of Conferences (Jan 2021)

The Implementation of Kruskal’s Algorithm for Minimum Spanning Tree in a Graph

  • Paryati,
  • Salahddine Krit

DOI
https://doi.org/10.1051/e3sconf/202129701062
Journal volume & issue
Vol. 297
p. 01062

Abstract

Read online

Kruskal’s Algorithm is an algorithm used to find the minimum spanning tree in graphical connectivity that provides the option to continue processing the least-weighted margins. In the Kruskal algorithm, ordering the weight of the ribs makes it easy to find the shortest path. This algorithm is independent in nature which will facilitate and improve path creation. Based on the results of the application system trials that have been carried out in testing and comparisons between the Kruskal algorithm and the Dijkstra algorithm, the following conclusions can be drawn: that a strength that is the existence of weight sorting will facilitate the search for the shortest path. And considering the characteristics of Kruskal’s independent algorithm, it will facilitate and improve the formation of the path. The weakness of the Kruskal algorithm is that if the number of nodes is very large, it will be slower than Dijkstra’s algorithm because it has to sort thousands of vertices first, then form a path.

Keywords