Exam 11: Trees

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

Find a minimal spanning tree for this weighted graph using Prim's algorithm. Find a minimal spanning tree for this weighted graph using Prim's algorithm.

Free
(Short Answer)
4.9/5
(31)
Correct Answer:
Verified

In order, the following edges are added: {d,e},{e,h},{e,f},{d,g},{g,a},{a,b},{b,c},{c,i}\{ d , e \} , \{ e , h \} , \{ e , f \} , \{ d , g \} , \{ g , a \} , \{ a , b \} , \{ b , c \} , \{ c , i \} . The weight of the minimal spanning tree is 17 .

refer to this graph. refer to this graph.   -Using the ordering B, G, J, A, C, I, F, H, D, E, find a spanning tree for this graph by using a breadth-first search. -Using the ordering B, G, J, A, C, I, F, H, D, E, find a spanning tree for this graph by using a breadth-first search.

Free
(Short Answer)
4.9/5
(34)
Correct Answer:
Verified

Is the following code a prefix code: A: 11, B: 10, C: 0?

Free
(Short Answer)
4.8/5
(35)
Correct Answer:
Verified

Yes

C7 has,  C<sub>7</sub>  has,   spanning trees. spanning trees.

(Short Answer)
4.9/5
(31)

Draw all nonisomorphic rooted trees with 4 vertices.

(Short Answer)
4.9/5
(32)

Use the bubble sort to sort the list 5,4,3,2,1 in increasing order.

(Essay)
4.8/5
(34)

Every full binary tree with 61 vertices has leaves.

(Short Answer)
4.9/5
(43)

refer to this graph. refer to this graph.   -Using alphabetical ordering, find a spanning tree for this graph by using a breadth-first search. -Using alphabetical ordering, find a spanning tree for this graph by using a breadth-first search.

(Short Answer)
4.9/5
(34)

mark the statement TRUE or FALSE. -Every tree is planar.

(True/False)
4.9/5
(33)

Suppose T is a full m-ary tree with i internal vertices. Prove that T has 1 + (m − 1)i leaves.

(Short Answer)
4.8/5
(36)

The string 2xa+4y- \cdot 2 - x a + 4 y is prefix notation for an algebraic expression. Write the expression in postfix notation.

(Short Answer)
5.0/5
(34)

The minimum number of weighings with a pan balance scale needed to guarantee that you find the single counterfeit coin and determine whether it is heavier or lighter than the other coins in a group of five coins is .

(Short Answer)
4.8/5
(46)

refer to the tree at the right. -Find the inorder traversal.

(Short Answer)
4.8/5
(35)

Write the compound proposition (¬p)(q(r¬s)) in infix notation. ( \neg p ) \rightarrow ( q \vee ( r \wedge \neg s ) ) \text { in infix notation. }

(Short Answer)
4.8/5
(29)

Suppose you have 5 coins, one of which is heavier than the other four. Draw the decision tree for using a pan balance scale to find the heavy coin.

(Short Answer)
4.7/5
(26)

Suppose T is a full m-ary tree with l leaves. Prove that T has (l − 1)/(m − 1) internal vertices.

(Short Answer)
4.8/5
(31)

The string 23ax+4+723 a \cdot x + 4 \uparrow + 7 \uparrow is postfix notation for an algebraic expression. Write the expression in prefix notation.

(Short Answer)
4.8/5
(37)

If T is a full binary tree with 101 vertices, its minimum height is .

(Short Answer)
4.8/5
(23)

If T is a full binary tree of height h, then the minimum number of leaves in T is and the maximum number of leaves in T is .

(Short Answer)
4.8/5
(34)

Use backtracking to find a sum of integers in the set {18,19,23,25,31} that equals 44\{ 18,19,23,25,31 \} \text { that equals } 44 \text {. }

(Short Answer)
4.7/5
(39)
Showing 1 - 20 of 97
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)