edited by
598 views
1 1 vote
Time complexity of Prim's algorithm for computing minimum cost spanning tree for a complete graph with n vertices and e edges using Heap data structure is-

1. (n+e)*log^2n

2. n^2

3. n^2*logn

4. n*logn

Please log in or register to answer this question.

Position:
Show:

Related questions

3 3 votes
0 0 answers
408
408 views
1 1 vote
1 answers 1 answer
1.2k
1.2k views
KISHALAY DAS asked Dec 25, 2016
1,208 views
Determine the time complexity of the program segment given below:k = n; while ( k 0) { i = 1; for(j = 1; j <= n; j+=i) i++; k/=2; }$\Theta\left(n^2\right)$$\Theta(n \log...
0 0 votes
2 2 answers
1.4k
1.4k views
Nidhi Budhraja asked Nov 29, 2018
1,375 views
What is the time complexity of T(n) = T(n/3) + T(n/9) +n?
1 1 vote
2 2 answers
1.7k
1.7k views
akankshadewangan24 asked Sep 20, 2018
1,688 views
If t(n) and s(n) denotes the time and space complexity of an algorithm with input size n element then which one of the following is always true?S(n)=O(t(n)) correct H...