This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.
One of the measurements for the achieved performance is represented by the actual running time of the program. However, since the test of the Kruskal’s implementation was done (according the requirements) only on a provided graph, this timing is not very relevant compared with the situation when the tests were performed on more input graphs.
Kruskal’s algorithm considers the edges for adding to the MST by taking one by one in increasing order. The sorting can be performed in many ways by using different data structures. In this case it was preferred an easy implementation based on selection sort....
This is only a preview of the solution. Please use the purchase button to see the entire solution