2074 11

CSC211 ยท 2074 ยท 5 marks

Discuss the Kruskal's algorithm with example.

Discuss the Kruskal's algorithm with example. [5]

Data Structures and AlgorithmsChapter 8: Trees and GraphsDefinition and Representation of Graphs, Graph Traversal, Mi

Kruskal's algorithm is a greedy algorithm used to find the Minimum Spanning Tree (MST) of a connected, undirected, weighted graph. It builds the MST by selecting edges in increasing order of weight, skipping any edge that would form a cycle. --- 1. Sort all edges of the graph in non-decreasing or...