-
Notifications
You must be signed in to change notification settings - Fork 20k
Kruskal Implemented #1352
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kruskal Implemented #1352
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, keep it up!
DataStructures/Graphs/Kruskal.java
Outdated
@@ -0,0 +1,94 @@ | |||
package Kruskal; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The repository is for educational purpose and therefore it will be great if you could add a description of your problem.
Great work, looks good but it will be better if you could add the requested addons |
Thank you for your reply, I have added a new commit giving the context missing. Could you please check it? |
DataStructures/Graphs/Kruskal.java
Outdated
//The graph needs to be connected, because if there are nodes impossible to reach, there are no edges that could connect every node in the graph. | ||
//KA is a Greedy Algorithm, because edges are analysed based on their weights, that is why a Priority Queue is used, to take first those less weighted. | ||
//This implementations below has some changes compared to conventional ones, but they are explained all along the code. | ||
//In case you need to know anyhing else, I would be willing to answer all your doubts, you can contact me by https://www.linkedin.com/in/marcosvillacanas/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MarcosVillacanas kindly remove the reference to any personal link, you can add a reference for the algo though
@MarcosVillacanas otherwise there are no issues with the PR |
Ready to go :) |
Thank you
Le mar. 7 juil. 2020 à 09:42, Sombit Bose <[email protected]> a
écrit :
… Merged #1352 <#1352> into
master.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1352 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/APHVX6JQKQZJBUV4U3F5MXTR2LUYLANCNFSM4OAPQFJQ>
.
|
Kruskal algorithm was missing.
It is used to find the minimum spanning tree.
My code simplifies other implementations, the algorithm itself is just composed of one method with less than 25 lines of code commented.