Skip to content

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

Notifications You must be signed in to change notification settings

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

Watchers

Forks

Releases

No releases published

Packages

No packages published