Skip to content

Implementation of different versions of Prim's algorithm

Notifications You must be signed in to change notification settings

accoumar12/graph-optimization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Graph optimization

Implementation of different versions of Prim's algorithm, a naive one and a more advanced one involving binary heaps.

For instance, with the graph defined here in edges.txt, we get the following result:

Execution time (binary heap): 0.00450897216796875 seconds Sum of edge costs in MST (binary heap): -3612829 Execution time (naive): 0.39385294914245605 seconds Sum of edge costs in MST (naive) -3612829

About

Implementation of different versions of Prim's algorithm

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages