Exam 11: Trees
Exam 1: The Foundations: Logic and Proofs200 Questions
Exam 2: Basic Structures: Sets, Functions, Sequences, Sums, Matrices214 Questions
Exam 3: Algorithms52 Questions
Exam 4: Number Theory and Cryptography154 Questions
Exam 5: Induction and Recursion53 Questions
Exam 6: Counting156 Questions
Exam 7: Discrete Probability53 Questions
Exam 8: Advanced Counting Techniques128 Questions
Exam 9: Relations74 Questions
Exam 10: Graphs127 Questions
Exam 11: Trees97 Questions
Exam 12: Boolean Algebra77 Questions
Exam 13: Modeling Computation71 Questions
Select questions type
Find a minimal spanning tree for this weighted graph using Prim's algorithm. 

Free
(Short Answer)
4.9/5
(31)
Correct Answer:
In order, the following edges are added: . The weight of the minimal spanning tree is 17 .
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.

Free
(Short Answer)
4.9/5
(34)
Correct Answer:
Is the following code a prefix code: A: 11, B: 10, C: 0?
Free
(Short Answer)
4.8/5
(35)
Correct Answer:
Yes
refer to this graph.
-Using alphabetical ordering, find a spanning tree for this graph by using a breadth-first search.

(Short Answer)
4.9/5
(34)
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 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)
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 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)
Showing 1 - 20 of 97
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)