This assignment includes some review questions that are meant to help you prepare for the final exam, and a C program to practice implementing binary trees. The program presents some challenging problems, but you can find clues in the text, and we insist you pursue those clues rather than ask us to show you exactly how to solve the problems this time. |
hw4.txt
. Label your answers to
match the problem numbers, so we can easily identify the problems you are answering.
translate.c
to create and use an
expression tree to translate prefix expressions to infix and postfix forms. Begin with this
skeleton program You must
implement the following four functions (but it is okay to add utility
functions too):
turnin hw4@cs12 hw4.txt translate.c