adspace
What is a spanning tree?does the minimum spanning tree of a graph give the shortest distance between any 2 specified nodes?
Answer Posted / 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 View All Answers
For the following COBOL code, draw the Binary tree? 01 STUDENT_REC. 02 NAME. 03 FIRST_NAME PIC X(10). 03 LAST_NAME PIC X(10). 02 YEAR_OF_STUDY. 03 FIRST_SEM PIC XX. 03 SECOND_SEM PIC XX.
Write a program for Sorting an Array. Which sorting will you prefer?
“int a[] = new int[3]{1, 2, 3}” – This a legal way of defining the arrays?
What sort of serious problems have you experienced, and how have you handled them?
Draw a binary Tree for the expression : A * B - (C + D) * (P / Q)
Can you declare an array without assigning the size of an array?