Skip to content
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

Adding algorithms for minimum spanning tree #137

Closed
czgdp1807 opened this issue Mar 11, 2020 · 6 comments · Fixed by #219
Closed

Adding algorithms for minimum spanning tree #137

czgdp1807 opened this issue Mar 11, 2020 · 6 comments · Fixed by #219

Comments

@czgdp1807
Copy link
Member

czgdp1807 commented Mar 11, 2020

Description of the problem

The following algorithms(both serial and parallel version) are to be added through a series of PRs.

  1. Prim's Algorithm - https://en.wikipedia.org/wiki/Prim%27s_algorithm
  2. Kruskal's Algorithm - https://en.wikipedia.org/wiki/Kruskal%27s_algorithm

The APIs for the algorithms can be as simple as,

  1. minimum_spanning_tree(graph, algorithm) - This will return a new graph for the spanning tree.
  2. minimum_spanning_tree_parallel(graph, algorithm, num_threads) - This will do the computation of the MST using given number of threads.

Example of the problem

References/Other comments

This issue is not open for contributors though anyone is free to comment on the APIs and review the code.

@czgdp1807
Copy link
Member Author

First, Kruskal algorithm will be added before which disjoint set data structure will be added.

@HarsheetKakar
Copy link
Contributor

Why is it not open for contributors?

@Disha5harma
Copy link

Sir, I want to work on this.Can you please assign me this?

@czgdp1807
Copy link
Member Author

Hi @Disha5harma Please see issues labelled with gssoc20. This issue is open for comments on APIs but not for contributors to make PRs. Thanks.

@Disha5harma
Copy link

Disha5harma commented Mar 12, 2020 via email

@abhishekgupta368
Copy link

I can do it with time and memory efficiency. can you please assign me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants