codeonly those that appear in the message figure shows how this looks for the susie message figure space linefeed code table such code table makes it easy to generate the coded messagefor each character in the original messagewe use its code as an index into the code table we then repeatedly append the huffman codes to the end of the coded message until it' complete creating the huffman code how do we create the huffman code to put into the code tablethe process is like decoding message we start at the root of the huffman tree and follow every possible path to leaf node as we go along the pathwe remember the sequence of left and right choicesrecording for left edge and for right edge when we arrive at the leaf node for characterthe sequence of and is the huffman code for that character we put this code into the code table at the appropriate index number this process can be handled by calling method that starts at the root and then calls itself recursively for each child eventuallythe paths to all the leaf nodes will be explored and the code table will be complete