Skip to content

Added Boruvka's algorithm to find Minimum Spanning Tree #4964

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

Merged
merged 91 commits into from
Dec 2, 2023

Conversation

itakurah
Copy link
Contributor

This PR consists of an implementation for the Borůvka's algorithm (https://en.wikipedia.org/wiki/Bor%C5%AFvka%27s_algorithm) for finding a MST in graphs.

  • I have read CONTRIBUTING.md.
  • This pull request is all my own work -- I have not plagiarized it.
  • All filenames are in PascalCase.
  • All functions and variable names follow Java naming conventions.
  • All new algorithms have a URL in their comments that points to Wikipedia or other similar explanations.
  • All new code is formatted with clang-format -i --style=file path/to/your/file.java

@itakurah itakurah marked this pull request as ready for review November 22, 2023 09:04
Copy link
Member

@siriak siriak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code looks good, could you please add some JUnit tests? (see https://github.com/TheAlgorithms/Java/tree/master/src/test/java/com/thealgorithms)

@itakurah
Copy link
Contributor Author

@siriak added JUnit tests.

@itakurah itakurah requested a review from siriak November 22, 2023 11:32
itakurah and others added 6 commits November 22, 2023 20:11
…lgorithm.java

Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>
…lgorithm.java

Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>
…lgorithm.java

Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>
…lgorithm.java

Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>
…lgorithm.java

Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>
…lgorithm.java

Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>
@itakurah itakurah requested a review from vil02 November 29, 2023 09:57
itakurah and others added 2 commits November 29, 2023 20:03
…lgorithm.java

Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>
…lgorithm.java

Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>
itakurah and others added 2 commits November 29, 2023 20:04
…lgorithm.java

Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>
…lgorithm.java

Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>
@itakurah itakurah requested a review from vil02 November 29, 2023 19:16
Copy link
Member

@vil02 vil02 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@siriak please have a final look.

@itakurah itakurah requested a review from siriak December 2, 2023 11:17
Copy link
Member

@siriak siriak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@siriak siriak merged commit e759544 into TheAlgorithms:master Dec 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants