Skip to content

Illumanizer/MST_Algorithm_implementation

Repository files navigation

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.

About

This is implementation of Krushkal and Prim's Algorithm to find Minimum Spanning tree with the help of self implemented Fibonacci Heap and Disjoint Set

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors