Exam 11: A: Trees

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

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.

(Essay)
4.7/5
(66)

refer to the tree refer to the tree   -Find the postorder traversal. -Find the postorder traversal.

(Short Answer)
4.7/5
(87)

No tree has a Hamilton path.

(True/False)
4.9/5
(88)

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 depth-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 depth-first search.

(Essay)
4.8/5
(85)

(a) Set up a binary tree for the following list, in the given order, using alphabetical ordering: STOP, LET, THERE, TAPE, NONE, YOU, ANT, NINE, OAT, NUT. (b) Explain step by step how you would search for the word TEST in your tree. (c) What is the height of the shortest binary search tree that can hold all 10 words? (d) Write the preorder traversal of the tree. (e) Write the postorder traversal of the tree. (f) Write the inorder traversal of the tree.

(Essay)
4.8/5
(78)

fill in the blanks. -If T is a full binary tree with 101 vertices, its maximum height is ____.

(Short Answer)
4.8/5
(83)

Find the inorder traversal of the parsing tree for (8x−y)5−74z−3( 8 x - y ) ^ { 5 } - 7 \sqrt { 4 z - 3 }

(Short Answer)
4.8/5
(81)

fill in the blanks. -A full 3-ary tree with 13 internal vertices has ____ vertices.

(Short Answer)
4.8/5
(92)

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 depth-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 depth-first search.

(Essay)
4.8/5
(73)

Every tree is bipartite.

(True/False)
4.7/5
(65)

fill in the blanks. -There are ____ non-isomorphic rooted trees with four vertices.

(Short Answer)
4.9/5
(67)

Draw all nonisomorphic trees with 5 vertices.

(Essay)
4.9/5
(82)

Use Prim's algorithm to find a minimal spanning tree for this weighted graph. Use alphabetical order to break ties. Use Prim's algorithm to find a minimal spanning tree for this weighted graph. Use alphabetical order to break ties.

(Essay)
4.8/5
(64)

Find a spanning tree for the graph K3,4 using a depth-first search. (Assume that the vertices are labeled u1,u2,u3u_{1}, u_{2}, u_{3} in one set and v1,v2,v3,v4v_{1}, v_{2}, v_{3}, v_{4} in the other set, and that alphabetical ordering is used in the search, with numerical ordering on the subscripts used to break ties.)

(Essay)
4.7/5
(83)

refer to this graph.  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. -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.

(Essay)
4.8/5
(90)

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

(Essay)
4.8/5
(91)

fill in the blanks. -Every full binary tree with 61 vertices has ____ leaves.

(Short Answer)
4.8/5
(84)

Write the compound proposition (¬p)→(q∨(r∧¬s))( \neg p ) \rightarrow ( q \vee ( r \wedge \neg s ) ) in postfix notation.

(Short Answer)
4.9/5
(81)

There is a tree with degrees 3, 2, 2, 2, 1, 1, 1, 1, 1.

(True/False)
4.8/5
(79)

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.9/5
(74)
Showing 21 - 40 of 94
close modal

Filters

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