HOME Definition of a Tree: A tree is a set of one or more nodes T such that: (i).There is a specially designated node called a root (ii).The remaining nodes are partitioned into n disjointed set of nodes T1, T2,…,Tn, each of which is a tree. Degree of a Node of a Tree: The degree [...]
Archive for the ‘BINARY_TREE’ Category
TREES
April 1, 2008BINARY_TREE
March 29, 2008HOME /*….PROGRAM TO IMPLEMENT OPERATIONS ON THE BINARY TREE…*/ #include<iostream.h> #include<conio.h> class tree; class stack //CLASS NAME { tree* pointer; stack *top; public: stack() { top=NULL; } void push(tree* i) //FUNCTION TO PUSH { stack [...]