题目内容

8 Which of the following is a prefix code? ( )

A. {0,1101,1110,1100,1111}
B. {0,1,01,010,110}
C. {00,01,10,11,101}
D. {01,00,10,001,110,101}

查看答案
更多问题

9 The postfix expression of the arithmetic expression a+b* (c+d/e) is ( ).

A. abcde/+*+
B. ab+cde/*
C. abcde/*++
D. abcde*/++

10 Suppose the degree of tree T is 4, where the number of nodes with degrees 1, 2, 3 and 4 are 4, 2, 1, 1, respectively, then the number of leaves in T is ().

A. 5
B. 6
C. 7
D. 8

11 A Huffman tree has a total of 215 nodes, and Huffman coding can get a total of ( ) different codewords.

A. 107
B. 108
C. 214
D. 215

12 A binary tree with N nodes is stored in a binary linked list, and there are ( ) null pointer fields.

A. N+1
B. N
C. N-1
D. Unconfirmed

答案查题题库