• edited by
628 views
0 0 votes
complexity of kruskal algorithum for finding the minimum cost spanning tree of an undirected graph contain n vertices and m edges if the edge are already sorted.??

1 Answer

1 1 vote
If the edges are already sorted, we can get the minimum edge weight in constant time, and we may have to repeat this for all edges.

So it becomes O(m), where m is the number of edges as per your question.
• edited by
Position:
Show:

Related questions

3 3 votes
2 answers 2 answers
2.1k
2.1k views
Shivi rao asked Oct 31, 2017
2,068 views
Consider vertices V1 and V2 that are simultaneously on function call stack at some point during DFS from vertex s.Which of the following are always true for this digraph ...
1 1 vote
1 1 answer
5.0k
5.0k views
Pankaj Joshi asked Jan 20, 2017
5,024 views
Which of the following statements is true?Adding a constant to every edge weight in a directed graph can change the set of edges that belongs to minimum cost spanning tre...
1 1 vote
2 2 answers
3.3k
3.3k views
Abhishek Kumar 38 asked Jan 4, 2019
3,343 views
Which of the following statement is true?For a directed graph, the absence of back edges in a DFS tree can have cycle.If all edge in a graph have distinct weight then the...
0 0 votes
0 0 answers
746
746 views
CHïntän ÞäTël asked Dec 25, 2018
746 views
According To Me Answer Should Be 6… Anyone Please Try Once!!! Given Is 5 With No Explaination !!!!like 11-12-12 then for second square 4 times 13 so c(4,2) any two of the...