Exam 11: Trees

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

Is the code given by a:0,m:10,s:110,t:111 a prefix code? a : 0 , m : 10 , s : 110 , t : 111 \quad \text { a prefix code? }

(Short Answer)
4.8/5
(94)

refer to this graph. refer to this graph.   -Using alphabetical ordering, find a spanning tree for this graph by using a depth-first search. -Using alphabetical ordering, find a spanning tree for this graph by using a depth-first search.

(Short Answer)
4.8/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 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.

(Short Answer)
4.7/5
(74)

mark the statement TRUE or FALSE. -If two trees have the same number of vertices and the same degrees, then the two trees are isomorphic.

(True/False)
4.8/5
(82)

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.

(Short Answer)
4.8/5
(70)

There are full binary trees with six vertices.

(Short Answer)
4.8/5
(91)

mark the statement TRUE or FALSE. -If T is a rooted binary tree of height 5, then T has at most 25 leaves.

(True/False)
4.9/5
(100)

Use Huffman coding to encode these symbols with given frequencies: a: 0.15, b: 0.35, c: 0.23, d: 0.22, e: 0.04, f: 0.01 . What is the average number of bits required to encode a character?

(Short Answer)
4.9/5
(78)

The value of the arithmetic expression whose prefix representation is −5/.62−53 is - 5 / .62 - 53 \text { is }‾\underline{\quad\quad}

(Short Answer)
4.8/5
(89)

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

(Short Answer)
4.9/5
(64)

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

Every full binary tree with 50 leaves has vertices.

(Short Answer)
4.8/5
(66)

The largest number of leaves in a binary tree of height 5 is .

(Short Answer)
4.9/5
(84)

If each edge of Q4 has weight 1, then the cost of any spanning tree of minimum cost is Q _ { 4 } \text { has weight } 1 \text {, then the cost of any spanning tree of minimum cost is }‾\underline{\quad\quad}

(Short Answer)
4.9/5
(79)

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

(Short Answer)
4.9/5
(89)

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

(Short Answer)
4.8/5
(65)

refer to this graph. refer to this graph.   -Using reverse alphabetical ordering, find a spanning tree for the graph by using a depth-first search. -Using reverse alphabetical ordering, find a spanning tree for the graph by using a depth-first search.

(Short Answer)
4.8/5
(80)

The string prq→¬qΔp→∧p r q \rightarrow \neg q \Delta p \rightarrow \wedge is postfix notation for a logic expression; however, there is a misprint. The triangle should be one of these three: r,,∨, Or ¬r _ { , } , \vee , \text { Or } \neg Determine which of these three it must be and explain your reasoning.

(Short Answer)
4.8/5
(70)

Draw a parsing tree for (a−(3+2b))/(c2+d)( a - ( 3 + 2 b ) ) / \left( c ^ { 2 } + d \right)

(Short Answer)
4.8/5
(77)

refer to this graph. refer to this graph.   -Using reverse alphabetical ordering, find a spanning tree for the graph by using a depth-first search. -Using reverse alphabetical ordering, find a spanning tree for the graph by using a depth-first search.

(Short Answer)
4.8/5
(89)
Showing 61 - 80 of 97
close modal

Filters

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