Recent questions tagged prims-algorithm

452
views
1 answers
0 votes
pls give all possible sequences possible for prims algo
1.1k
views
2 answers
2 votes
Can anyone help in solving the question 105 to 109.I don't have answer key I want to confirm my answer ...i will update my answer in the comments.
742
views
0 answers
2 votes
Please can anyone tell me though Prim’s and Kruskal’s algorithms are greedy algorithms. Greedy algorithms always give local optimum solutions but how Prim’s and Kruskal’s algorithms are giving global optimum solutions why?
1.9k
views
2 answers
0 votes
Consider the undirected graph below:Using Prim's algorithm to construct a minimum spanning tree starting with node $a$, which one of the following sequences of edges represents a possible order in ...
1.2k
views
1 answers
0 votes
What is the time complexity of Prim algorithm without using min heap?
1.1k
views
0 answers
1 votes
For a sparse graph $G=(V,E)$ where $|E|=\Theta (V)$ is the implementation of Prim's algorithm with a Fibonacci heap asymptotically faster than ... Dense graph here? How Dense graph implemented and how it make difference for this question
1.4k
views
0 answers
1 votes
suppose that a graph G has MST already computed. How quickly can we update the MST if we add a new vertex and incident edges to it.I know for the ... we can reuse part of the DFS that we had already computed before detecting each cycle.
1.9k
views
1 answers
2 votes
Suppose that all edge weights in a graph are integers in the range from 1 to |V|. How fast can you make Prim's algorithm run? What if the edge weights are integers in the ... ).Doubt 2 : why doubly linked list is used for range 1.... |W| ??
1.5k
views
2 answers
2 votes
Suppose prim’s algorithm is implemented using array as queue for a graph $G(V,E)$. Then what is the time complexity of Prim’s algorithm?$O (E \hspace{0.1cm}log\hspace{0.1cm} V)$O (V^2 \hspace{0.1cm}log\hspace{0.1cm} V)$O(V^2)$O(VE)$
1.3k
views
0 answers
2 votes
Consider the following graph and Assume node P' as the starting vertex for Prim's algorithm. Which of the following can be the correct order of edges to which they are added to construct ... -X, X-V, V-U, U-R, R-W, R-S, S-TPLEASE EXPLAIN.
2.1k
views
1 answers
5 votes
Given graph using Prim's or Kruskal's algorithm, find out that how many distinct minimum cost spanning trees are possible___?My answer was 1 and given is 2 , ... missing ? Edit:I had confirmed with it and answer is only one tree possible.
578
views
2 answers
1 votes
Hello,I have doubt regarding prims algorithm1)should we choose the lowest cost edge and then implement algo further?2)Or we choose any vertex and then lowest cost edge of that vertex?
531
views
2 answers
2 votes
(a,b),(b,c),(a,d),(e,f),(d,g),(c,e)(g,f),(f,c),(g,d),(c,e),(d,b),(d,a)(c,f),(c,e),(e,d),(a,b),(d,g),(b,c)None of the above
781
views
0 answers
1 votes
First statement is False because complexity will be O(E2).I think the second statement is true? But not sure
871
views
0 answers
1 votes
Assuming that the graph can contain repeated edge weights, we have a single tree at any instance when applying Prim's algorithm.Justify this statement.
2.6k
views
1 answers
3 votes
Explain Prims AlgorithmAnalysis Of Time ComplexityHow does $\mathcal{O}(VlogV + ElogV)=\mathcal{O}(ElogV)$
441
views
0 answers
0 votes
How to understand this: For a connected graph, V = O(E))SOURCE http://www.geeksforgeeks.org/greedy-algorithms-set-5-prims-mst-for-adjacency-list- ... complexity for adjacency list representation. Also same is given in CLRS but no reason
1.2k
views
0 answers
1 votes
Here the graph that I was trying to find MST using algo in cormen.(If you need algo to ask, I supposed you have it)Algorithms uses min queue in process, ... algo I will given you, or just please refer chapter 23 cormen prim's algorithm.
3.5k
views
3 answers
5 votes
It may be the case that "Kruskal's Algorithm may not maintain connectivity while Prim's algorithm always does that" ?Any example which favours this ?
2.4k
views
0 answers
0 votes
I am getting B and C both. Answer is given as C. Where am I wrong?
1.2k
views
3 answers
0 votes
394
views
0 answers
0 votes
Here it is mentioned as a queue and not a priority queue ,what would be the answer ?
921
views
0 answers
2 votes
I have seen many varients of complexities using diferent data structures in implementing Prims Agorithm. Can you pls post standard algorithm and tells me in ... How will effect the complexity taking Best case and Worst case senarios .
1.7k
views
3 answers
2 votes
Can Prim's and Kruskal's algorithm yield different minimum spanning trees? Explain why or why not.
725
views
1 answers
0 votes
Can anyone explain me the time complexity of Prim's algorithm?
2.0k
views
1 answers
1 votes
For prim's algorithm array implementation takes $O(V^2)$ while min heap implementation takes $O((E+V)\log V)$ time. For dense graph $E = O(V^2).$ ... the min heap one???Does the min heap implementation run better for graph with less edges??
3.1k
views
1 answers
3 votes
Suppose that edge weights are uniformly distributed over half open interval $[0,1)$. Which algorithm kruskal's or prim's can make you run faster?
2.2k
views
2 answers
1 votes
Which one of following statement is false about prim's algorithm?a) It use a running time of O(Elog2V) using binary heapb) It may use a binomial max-heap to represent ... in priority queue are set to infinity . The root's key is set to 0.