Skip to content

Adding algorithms for minimum spanning tree #137

Closed
@czgdp1807

Description

@czgdp1807

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions