What is a spanning tree?does the minimum spanning tree of a graph give the shortest distance between any 2 specified nodes?



What is a spanning tree?does the minimum spanning tree of a graph give the shortest distance between..

Answer / Hridesh Kumar

A spanning tree is a subset of a connected graph that contains all its vertices but no cycles. A minimum spanning tree (MST) is a spanning tree with the minimum possible total edge weight. Yes, the MST of a graph does give the shortest path between any two nodes, as it is constructed by finding and adding edges with the smallest weights until a tree is formed.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Structures Interview Questions

What is the difference between hashset and arraylist?

1 Answers  


Given M x N matrix with sorted elements row wise and column wise, find elements?

1 Answers   Expedia,


How is it possible to insert different type of elements in stack?

7 Answers   TCS,


What is default size of hashmap?

1 Answers  


What is dynamic array how it is created?

1 Answers  


Does the minimum spanning tree of a graph give the shortest distance between any 2 specified nodes?

1 Answers  


Which is the simplest file structure?

1 Answers  


Does linkedhashset allow null values?

1 Answers  


how a polynomial such as 6x^6+4x^3-2x+10 can be represnted by linked list?write an algorithm that reads such an polynomial

1 Answers  


How do you initialize an arraylist?

1 Answers  


What do you mean by sorting data?

1 Answers  


How is any data structure application is classified among files?

1 Answers  


Categories