Exam 11: Trees
Exam 1: The Foundations: Logic and Proofs18 Questions
Exam 1: A: the Foundations: Logic and Proofs201 Questions
Exam 2: Basic Structures: Sets, Functions, Sequences, Sums, Matrices5 Questions
Exam 2: A: Basic Structures: Sets, Functions, Sequences, Sums, Matrices210 Questions
Exam 3: Algorithms8 Questions
Exam 3: A: Algorithms54 Questions
Exam 4: Number Theory and Cryptography10 Questions
Exam 4: A: Number Theory and Cryptography149 Questions
Exam 5: Induction and Recursion10 Questions
Exam 5: A: Induction and Recursion51 Questions
Exam 6: Counting14 Questions
Exam 6: A: Counting155 Questions
Exam 7: Discrete Probability9 Questions
Exam 7: A: Discrete Probability50 Questions
Exam 8: Advanced Counting Techniques16 Questions
Exam 8: A: Advanced Counting Techniques124 Questions
Exam 9: Relations13 Questions
Exam 9: A: Relations72 Questions
Exam 10: Graphs14 Questions
Exam 10: A: Graphs131 Questions
Exam 11: Trees13 Questions
Exam 11: A: Trees94 Questions
Exam 12: Boolean Algebra11 Questions
Exam 12: A: Boolean Algebra67 Questions
Exam 13: Modeling Computation14 Questions
Exam 13: A: Modeling Computation67 Questions
Exam 14: Mathematics Problem Set: Set Theory, Number Theory, Combinatorics, and Boolean Algebra29 Questions
Select questions type
How many nonisomorphic trees are there with four vertices? Draw them.
Free
(Essay)
4.8/5
(34)
Correct Answer:
There are two nonisomorphic unrooted trees with four vertices, as shown.
(a) Suppose that a full 3-ary tree has 100 internal vertices. How many leaves does it have? (b) Suppose that a full 4-ary tree has 100 leaves. How many internal vertices does it have?
Free
(Essay)
4.7/5
(32)
Correct Answer:
(a) A full 3-ary tree with 100 internal vertices has l = (3 − 1) · 100 + 1 = 201 leaves. (b) A full 4-ary tree with 100 leaves has i = (100 − 1)/(4 − 1) = 33 internal vertices.
Perform a preorder, inorder, and postorder traversal of the rooted tree below. 

Free
(Essay)
4.9/5
(34)
Correct Answer:
The preorder traversal is a, b, e, f, j, k, c, d, g, h, i; the inorder traversal is and the postorder traversal is e, j, k, f, b, c, g, h, i, d, a.
Construct an expression tree for and write this expression is prefix form and postfix form.
(Essay)
4.9/5
(38)
Use backtracking to find a sum of integers in the set {18, 19, 23, 25, 31} that equals 44.
(Essay)
4.9/5
(30)
Use a depth-first search to find a spanning tree of the following graph. Start at the vertex a, and use alphabetical order. 

(Essay)
4.7/5
(33)
Is the code A: 111, B: 101, C: 011, D: 010, E: 10, F: 1101 a prefix code?
(Essay)
4.7/5
(31)
Form a binary search tree from the words of the sentence This test is not so difficult, using alphabetical order, inserting words in the order they appear in the sentence.
(Essay)
4.7/5
(39)
Which of the following graphs are trees ? Explain your answers.
a)
b)
C)



(Essay)
4.8/5
(27)
Find a minimum spanning tree in the following weighted graph using Prim's algorithm. 

(Essay)
4.8/5
(35)
Use Prim's algorithm to find a minimum spanning tree for the following weighted graph. Use alphabetical
(Essay)
4.8/5
(33)
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)