Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 305 Bytes

File metadata and controls

10 lines (7 loc) · 305 Bytes

Assignment 3 — Minimum Spanning Tree (Software Fundamentals)

Compile all files together: g++ -std=c++17 -O2 -Wall *.cpp -o mst

Run: ./mst

Input format: n×n cost matrix (-1 for no edge, 0 on diagonal) Output: MST edges for Prim and Kruskal algorithms with total cost and runtime in output.txt file.