![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构
文章平均质量分 77
普通网友
这个作者很懒,什么都没留下…
展开
-
数据结构中树的相关概念
1.树的相关术语 1. 一个结点的子树的个数称为该结点的度。一棵树的度是指该树中结点的最大度数。 2. 树中度为零的结点称为叶结点或终端结点。 3. 树中度不为零的结点称为分枝结点或非终端结点。除根结点外的分枝结点统称为内部结点。 例如在图1中,结点A,B和E的度分别为3,2,0。其中A为根结点,B为内部结点,E为叶结点,树的度为3。 4. 结点的子树的根成为该结点的孩子,相应地原创 2016-01-22 18:44:21 · 751 阅读 · 0 评论 -
单链表简单选择排序
#include #include #define m 3 #define NULL 0 typedef struct stnode { char id; char name[16]; int cls[3]; float ave; struct stnode *next; }students; students *head; int n; void average1()原创 2016-01-07 15:13:30 · 723 阅读 · 0 评论