Login
Register
Dark Mode
Brightness
Ambient Glow – Questions list
Register
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged prims-algorithm
1
1 vote
1
answers
1 answer
1.3k
1.3k views
Question - 2 | DPP | Greedy Method
Which of the statement is/are correct?(a) First edge added by Kruskal’s algorithm can be the last edge added by prim’s algorithm(b) In a graph, if one raises the length o...
Debargha Mitra Roy
1.3k
views
asked
Aug 25, 2024
Algorithms
algorithms
graph-algorithms
greedy-algorithms
prims-algorithm
kruskals-algorithm
minimum-spanning-tree
+
–
1
1 vote
1
answers
1 answer
1.0k
1.0k views
Made Easy Test Series 2024
pls give all possible sequences possible for prims algo Consider the undirected graph below:Using Prim's algorithm to construct a minimum spanning tree starting with node...
aashish1406
1.0k
views
asked
Aug 8, 2023
Algorithms
made-easy-test-series
made-easy-booklet
algorithms
prims-algorithm
minimum-spanning-tree
+
–
3
3 votes
2
answers
2 answers
2.6k
2.6k views
Gate@Zeal Booklet
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.
DeadMann
2.6k
views
asked
Jun 24, 2023
Algorithms
kruskals-algorithm
greedy-algorithms
prims-algorithm
minimum-spanning-tree
zeal-test-series
zeal-workbook
+
–
0
0 votes
0
0 answers
486
486 views
UGCNET CSE December 2022: 72
Match $\text{List I}$ with $\text{List II}$$\text{List I}$$\text{List II}$$\text{A}$. Dijkstra's Algorithm$\text{I}$. Calculates path matrix$\text{B}$. Prim's Algorithm$\...
admin
486
views
asked
May 20, 2023
Others
ugcnetcse-dec2022
dijkstras-algorithm
prims-algorithm
warshall-algorithm
kruskals-algorithm
graph-algorithms
minimum-spanning-tree
+
–
2
2 votes
0
0 answers
1.2k
1.2k views
Why does Kruskal's algorithm find the minimum spanning tree if it's greedy? Isn't a minimum spanning tree a global optimization problem? Isn't the point of being greedy is that there is a chance you won't find the most optimal solution? So how can Kruskal be able to find the minimum spanning tree while also being greedy?
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...
sandip_1999
1.2k
views
asked
May 11, 2022
Algorithms
kruskals-algorithm
prims-algorithm
minimum-spanning-tree
+
–
1
1 vote
2
2 answers
3.0k
3.0k views
UGC NET CSE | October 2020 | Part 2 | Question: 78
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 repr...
go_editor
3.0k
views
asked
Nov 20, 2020
Algorithms
prims-algorithm
algorithms
minimum-spanning-tree
ugcnetcse-oct2020-paper2
+
–
0
0 votes
1
1 answer
1.8k
1.8k views
Prim Algorithm
What is the time complexity of Prim algorithm without using min heap?
Alakhator
1.8k
views
asked
Oct 11, 2018
Algorithms
algorithms
graph-algorithms
prims-algorithm
time-complexity
+
–
1
1 vote
0
0 answers
1.7k
1.7k views
Cormen 23.2-3
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 the binary-heap implementat...
srestha
1.7k
views
asked
Aug 24, 2018
Algorithms
algorithms
prims-algorithm
+
–
1
1 vote
0
0 answers
3.1k
3.1k views
CLRS INTRODUCTION TO ALGORITHMS 3rd Edition, CHAPTER 23 QUESTION 23.2.7
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 best case scenario when ...
aambazinga
3.1k
views
asked
Aug 19, 2018
Algorithms
algorithms
graph-algorithms
prims-algorithm
+
–
2
2 votes
1
answers
1 answer
2.5k
2.5k views
cormen 2nd edition excercise 23-2-5
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...
Sandy Sharma
2.5k
views
asked
Jul 21, 2018
Algorithms
algorithms
prims-algorithm
+
–
2
2 votes
2
answers
2 answers
2.8k
2.8k views
Gradeup Test series
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.1...
Aishwarya Gujrathi
2.8k
views
asked
Mar 27, 2018
Algorithms
test-series
prims-algorithm
time-complexity
+
–
2
2 votes
0
0 answers
1.5k
1.5k views
TEST SERIES
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 a...
ankit_thawal
1.5k
views
asked
Jan 8, 2018
Algorithms
prims-algorithm
minimum-spanning-tree
greedy-algorithms
+
–
5
5 votes
1
1 answer
2.6k
2.6k views
How many MST is possible?
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 ,what I am mi...
sunil sarode
2.6k
views
asked
Jan 2, 2018
Algorithms
algorithms
minimum-spanning-tree
kruskals-algorithm
prims-algorithm
+
–
1
1 vote
2
answers
2 answers
907
907 views
Regarding prims algo
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...
JPranavc
907
views
asked
Nov 24, 2017
Data Structures
algorithms
prims-algorithm
+
–
2
2 votes
2
2 answers
930
930 views
Which of the following is the possible sequence of edges when Prim's algorithm is applied ?
(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
techbrk3
930
views
asked
Nov 16, 2017
Algorithms
graph-connectivity
prims-algorithm
+
–
1
1 vote
0
0 answers
1.5k
1.5k views
MST Kruskal
First statement is False because complexity will be O(E2).I think the second statement is true? But not sure
Shivam Chauhan
1.5k
views
asked
Nov 2, 2017
Algorithms
algorithms
minimum-spanning-tree
time-complexity
prims-algorithm
+
–
1
1 vote
0
0 answers
1.4k
1.4k views
Prim's algorithm for MST
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.
just_bhavana
1.4k
views
asked
Oct 30, 2017
Algorithms
prims-algorithm
algorithms
+
–
3
3 votes
1
1 answer
3.0k
3.0k views
Analysis Of Prims Algorithm Time Complexity
Explain Prims AlgorithmAnalysis Of Time ComplexityHow does $\mathcal{O}(VlogV + ElogV)=\mathcal{O}(ElogV)$
pC
3.0k
views
asked
Sep 22, 2017
Algorithms
algorithms
prims-algorithm
time-complexity
+
–
0
0 votes
0
0 answers
702
702 views
Self Doubt (Graphs)
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-representation/prims algo...
Anshul Shankar
702
views
asked
Sep 11, 2017
Algorithms
prims-algorithm
clrs
+
–
1
1 vote
0
0 answers
1.5k
1.5k views
prims algo from cormen
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, my dobut is when ...
bhuv
1.5k
views
asked
Aug 4, 2017
Algorithms
graph-algorithms
prims-algorithm
algorithms
+
–
1
1 vote
1
answers
1 answer
545
545 views
Test by Bikram | Algorithms | Test 2 | Question: 11
Let the node P be the starting vertex for Prim's Algorithm as given in the diagram below:In order to construct the Minimum Spanning Tree, which of the following options r...
Bikram
545
views
asked
May 26, 2017
Algorithms
tbb-algorithms-2
minimum-spanning-tree
prims-algorithm
graph-algorithms
algorithms
+
–
5
5 votes
3
3 answers
5.0k
5.0k views
Difference between Kruskal's and Prim's algorithm ?
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 ?
Kapil
5.0k
views
asked
Jan 24, 2017
Algorithms
algorithms
graph-algorithms
kruskals-algorithm
prims-algorithm
+
–
0
0 votes
0
0 answers
3.0k
3.0k views
Prim's Algorithm
I am getting B and C both. Answer is given as C. Where am I wrong?
Samujjal Das
3.0k
views
asked
Jan 24, 2017
Algorithms
prims-algorithm
algorithms
+
–
0
0 votes
3
3 answers
2.4k
2.4k views
Virtual Gate Test Series: Algorithms - Minimum Spanning Tree
I think all options are wrong
Purple
2.4k
views
asked
Jan 11, 2017
Algorithms
algorithms
minimum-spanning-tree
prims-algorithm
virtual-gate-test-series
+
–
0
0 votes
0
0 answers
757
757 views
Targate
Here it is mentioned as a queue and not a priority queue ,what would be the answer ?
Harsh181996
757
views
asked
Jan 5, 2017
Algorithms
algorithms
graph-algorithms
prims-algorithm
+
–
2
2 votes
0
0 answers
1.2k
1.2k views
Analysis Of Prims Algorithm
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 details how ...
PEKKA
1.2k
views
asked
Dec 18, 2016
Algorithms
algorithms
prims-algorithm
+
–
2
2 votes
3
3 answers
2.5k
2.5k views
#algorithm
Can Prim's and Kruskal's algorithm yield different minimum spanning trees? Explain why or why not.
Geet
2.5k
views
asked
Oct 26, 2016
Algorithms
minimum-spanning-tree
algorithms
kruskals-algorithm
prims-algorithm
+
–
0
0 votes
1
1 answer
1.1k
1.1k views
some1 plz explain why the time complexity of Prims algorithm using arrays is O(v^2+2E)...thanks in advance
anonymous
1.1k
views
asked
Jun 26, 2016
Algorithms
prims-algorithm
time-complexity
+
–
0
0 votes
1
1 answer
969
969 views
Algorithms
Can anyone explain me the time complexity of Prim's algorithm?
divya_theodore
969
views
asked
Jan 22, 2016
Algorithms
time-complexity
prims-algorithm
+
–
Page:
1
2
next »