Tree, is a abstract data type, a tree has the head(root), and children, and parent, and height,etc. tree is different from binary tree. a parent can have many many children, but binary tree can only have two children. when we implement a tree method, we will use recursion usually. We implemented few method in the lad and class, such as count_height,count_leaf,etc. But I always confused about those terminologies, and I will try to understand those terminologies deeply, because it is very important in computer science.
没有评论:
发表评论