Exam 11: A: Trees

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

fill in the blanks. -The best comparison-based sorting algorithms for a list of n items have complexity O( ____ ).

(Short Answer)
4.8/5
(73)

fill in the blanks. -C7 has ____ spanning trees.

(Short Answer)
4.7/5
(73)

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

(Essay)
4.9/5
(96)

Draw all nonisomorphic rooted trees with 4 vertices.

(Essay)
4.8/5
(75)

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

(Short Answer)
4.9/5
(71)

Find the preorder 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
(73)

fill in the blanks. -The bubble sort has complexity O( ____ ).

(Short Answer)
4.7/5
(87)

If two trees have the same number of vertices and the same degrees, then the two trees are isomorphic.

(True/False)
4.9/5
(81)

If T is a tree with 50 vertices, the largest degree that any vertex can have is 49.

(True/False)
4.9/5
(84)

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

(Short Answer)
4.8/5
(80)

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

(Essay)
4.9/5
(70)

fill in the blanks. -Write 3n − (k + 5) in prefix notation: ____.

(Short Answer)
4.9/5
(74)

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

(Short Answer)
4.9/5
(79)

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.8/5
(71)

The string 2 3 a⋅x+4↑+7↑2\ 3\ a \cdot x + 4 \uparrow + 7 \uparrow is postfix notation for an algebraic expression. Write the expression in infix notation.

(Short Answer)
4.8/5
(93)

The algebraic expression /−↑−a⋅7 c 3 4⋅3 b/ - \uparrow - a \cdot 7\ c\ 3\ 4 \cdot 3\ b is written in prefix notation. Write the expression in postfix notation.

(Short Answer)
4.9/5
(85)

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.9/5
(68)

fill in the blanks. -The value of the arithmetic expression whose prefix representation is − 5 / · 6 2 − 5 3 is ____.

(Short Answer)
5.0/5
(70)

Find the value of −↑x⋅5t/4−7c- \uparrow x \cdot 5 t / 4 - 7 c (in prefix notation) if c=5,x=2, and t=1c = 5 , x = 2 , \text { and } t = 1

(Short Answer)
4.8/5
(88)

Prove that if T is a full m-ary tree with v vertices, then T has ((m − 1)v + 1)/m leaves.

(Essay)
4.9/5
(75)
Showing 61 - 80 of 94
close modal

Filters

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