Skip to content

Commit

Permalink
Update ParallelAlgoKruskal.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyKuz1001 authored Dec 8, 2019
1 parent cfc194a commit 5cacdd1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Task02/ParallelAlgoKruskal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ static void parallelSort<T>(T[] edges, T[] buffer, int LIndex, int RIndex, int p
edges[k] = buffer[k];
}

public static int Execute()
public static int Execute(Graph graph)
{
int ans = 0;
(int, int, int)[] edges = GeneralResources.graphListEdges;
(int, int, int)[] edges = graph.graphListEdges;
parallelSort(edges, new (int, int, int)[edges.Length], 0, edges.Length, parallelDepth);

dsu = new int[GeneralResources.n];
dsu = new int[graph.graphAmountVertexes];
Array.Fill(dsu, -1);

for (int i = 0; i < edges.Length; i++)
Expand Down

0 comments on commit 5cacdd1

Please sign in to comment.