What is Spanning Tree?

devquora
devquora

Posted On: Feb 22, 2018

 

A tree is a no cycle, connected undirected graph. It would be a spanning tree of a graph G if it includes every vertex of G or spans G. It would be a subgraph of G if every edge present in the tree belongs to G. A spanning tree of a connected graph G can also be defined as a maximal set of edges of G which actually contains no cycle, or it could be the minimal set of edges that would connect all vertices. Technically, a graph, which is not connected, will never contain a spanning tree but possible to have several spanning trees.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Amazon Support Engineer Interview Questions

    Explain What is STP?

    The STP also stands for Spanning Tree Protocol constructs a loop-free logical topography for Ethernet networks. It is a ..

    Amazon Support Engineer Interview Questions

    Write a function to check if a number is prime?

    A prime number is a whole number greater than 1, which is only divisible by 1 and itself. // function check whether a number // is prime or not bool isPrime(int n) { // Corner case if (n...

    Amazon Support Engineer Interview Questions

    Write a regular expression to validate phone number in  XXX-XXX-XXXX format?

    A regular expression to validate phone number in XXX-XXX-XXXX format is follows: /^(?:\(\d{3}\)|\d{3}-)\d{3}-\d{4}$/...