11.2 problem 20 for test review 2. Jose nunez

image

This entry was posted in Uncategorized. Bookmark the permalink.

2 Responses to 11.2 problem 20 for test review 2. Jose nunez

  1. Kate Poirier says:

    Hi Jose, this looks pretty good but I do have a few comments.

    In (b) and (c), you’ve included some leaves in your tree without labels. Technically, your trees should include only the edges and vertices that are necessary for your prefix code.

    Also, it’s customary to let 0 indicate a left child and 1 indicate a right child. In your answer for (b) you’ve switched this in a few places, which makes your code harder to read…and it’s easier to make a mistake. Please keep to the 0-left and 1-right in the future.

  2. Jose N says:

    Thanks professor for the advice

Leave a Reply to Jose N Cancel reply

Your email address will not be published. Required fields are marked *