[Home]
[Contents]
[Chapter]
[Previous Algorithm]
[Next Algorithm]


Data structure definition for binary trees (Pascal version available)


typedef struct btnode { /*** binary tree definition ***/ typekey k; /*** key ***/ struct btnode *left,*right; /*** pointers to subtrees ***/ } node, *tree;

C source (341.data.c) Pascal source (341.data.p)



© Addison-Wesley Publishing Co. Inc.