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
If T is a binary tree with 100 vertices, its minimum height is .
(Short Answer)
4.8/5
(82)
(a) Set up a binary tree for the following list, in the given order, using alphabetical ordering: SHE, SELLS, SEA, SHELLS, BY, THE, SEASHORE.
(b) How many comparisons with words in the tree are needed to determine if the word SHARK is in the tree?
(c) How many comparisons with words in the tree are needed to determine if the word SEAWEED is in the tree?
(d) How many comparisons with words in the tree are needed to determine if the word SHELLS is in the tree?
(Short Answer)
4.9/5
(73)
Suppose that the universal address set address of a vertex v in an ordered rooted tree is 3.2.5.1.5. Find
(a) the level of v. (b) the minimum number of siblings of v.
(c) the address of the parent of v. (d) the minimum number of vertices in the tree.
(Short Answer)
4.8/5
(88)
If T is a tree, then its vertex-chromatic number is and its region-chromatic number is .
(Short Answer)
4.9/5
(78)
Prove that if T is a full m-ary tree with v vertices, then T has ((m − 1)v + 1)/m leaves.
(Short Answer)
4.9/5
(74)
If T is a full binary tree with 50 internal vertices, then T has vertices.
(Short Answer)
4.7/5
(87)
Suppose you have 50 coins, one of which is counterfeit (either heavier or lighter than the others). You use a
pan balance scale to find the bad coin. Prove that 4 weighings are not enough to guarantee that you find the
bad coin and determine whether it is heavier or lighter than the other coins.
(Short Answer)
4.9/5
(61)
refer to this graph.
-Using the ordering C, D, E, F, G, H, I, J, A, B, C, find a spanning tree for this graph by using a depth-first
search.
(Short Answer)
4.8/5
(75)
mark the statement TRUE or FALSE.
-There is a tree with degrees 3, 2, 2, 2, 1, 1, 1, 1, 1.
(True/False)
4.9/5
(76)
mark the statement TRUE or FALSE.
-If T is a tree with 50 vertices, the largest degree that any vertex can have is 49.
(True/False)
4.7/5
(66)
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 depth-first
search.
(Short Answer)
4.9/5
(77)
mark the statement TRUE or FALSE.
-There is a tree with degrees 3, 3, 2, 2, 1, 1, 1, 1.
(True/False)
4.8/5
(69)
Showing 41 - 60 of 97
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)