Technical Interview

Technical Interview
Interview Process
Introduction Questions
Quantitative Problems
Google & Microsoft
Object Oriented
C/C++ Questions
Java Questions
Data Structures
Fundamental Questions
Resume Tips
Added Recently
Contact Us
Submit Question/Answer


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




A spanning tree is a tree associated with a network. All the nodes of the graph appear on the tree once. A minimum spanning tree is a spanning tree organized so that the total edge weight between nodes is minimized. Minimal spanning tree assures that the total weight of the tree is kept at its minimum. But it doesn't mean that the distance between any two nodes involved in the minimum-spanning tree is minimum.