Boston University -- Computer Science Department


Trees

In this lab you will extend a program that creates a tree and lists its nodes in Preorder. It creates a tree in random order (not a binary search tree). Please save the following files (in a new directory):

tree.c

testInorder

testPostorder

Compile the program by gcc -Wall tree.c

Your assignment for this lab will consist of writing 4 functions that are defined in the file tree.c.

Do not forget about good programming practices, adequate comments and documentation for your functions. Everybody should be able to understand what your have done and why.

Enjoy,

Irene


This page was created by Irene Gassko.

Last updated on October 8, 1996.