Using the Huffman codes shown in Figure 1, complete the partial Huffman tree shown in Figure 2 by identifying which character belongs in each of the empty leaves: Leaf X, Leaf Y, and Leaf Z.
| Character | Binary code |
|---|---|
| E | 1 |
| N | 01 |
| D | 001 |
| S | 000 |

(15)
/ \
0 1
/ \
(7) [ E ]
/ \
0 1
/ \
(3) [ Leaf Z ]
/ \
0 1
/ \
[ Leaf X ] [ Leaf Y ]
State the character for:
Leaf X
Leaf Y
Leaf Z