Name two algorithms two find minimum spanning tree?



Name two algorithms two find minimum spanning tree?..

Answer / Sachin Arya

1) Prim's Algorithm: This is a popular algorithm for finding minimum spanning trees in a connected, undirected graph. It works by incrementally adding edges to the tree until all vertices are included. 2) Kruskal's Algorithm: This is another common algorithm for finding minimum spanning trees. Unlike Prim's, it first sorts the edges based on their weights and then builds the tree by connecting non-overlapping sets.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Structures Interview Questions

an array t[100] which contains numbers between 1..99. Return the duplicated value. Try both O(n) and O(n-square).

1 Answers  


Can we sort hashmap?

1 Answers  


What do you mean by 2-3-4 tree?

1 Answers  


You are given a singly linked list. How would you find out if it contains a loop or not without using temporary space?

1 Answers   TCS,


Why do we Use a Multidimensional Array?

1 Answers  


Differentiate between the singly linked list and doubly linked list.

1 Answers  


What's difference between stack and queue?

1 Answers  


Whether Linked List is linear or Non-linear data structure?

1 Answers  


Why is data structure?

1 Answers  


What is binary tree in discrete mathematics?

1 Answers  


What is data algorithm?

1 Answers  


What do u mean by array?

1 Answers  


Categories