Kruskal's algorithm is used to solve the minimum spanning tree(MST) problem. It looks for a MST of a weighted connected graph as an acyclic subgraph with V-1 number of edges(where V is the number of vertices) for which the the sum of edge weights is the smallest.
That's it from this blog post. If you liked it then do share this blog with your friends or people who wanna get into programming world. Thank You!