Skip to content
This repository was archived by the owner on Feb 9, 2019. It is now read-only.
/ mst-solver Public archive

Minimum Spanning tree solver. Implemented based Kruskal's algorithm using a d-heap as a priority queue of edges and rooted trees for disjoint sets.

Notifications You must be signed in to change notification settings

emmanuj/mst-solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mst-solver

Minimum Spanning tree solver. Implemented based Kruskal's algorithm using a d-heap as a priority queue of edges and rooted trees for disjoint sets.

Input graph has to be in DIMACS graph format

Example input can be found in sample_input.txt

example run:

./mstsolve -d 2 -i input_graph.txt -o output_file

where d = depth of d-heap (edge priority queue) i = input file o = output file

About

Minimum Spanning tree solver. Implemented based Kruskal's algorithm using a d-heap as a priority queue of edges and rooted trees for disjoint sets.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages