计算机数学基础⑥(Trees)
        【摘要】 
                    
                        
                    
                    
 文章目录
 TreesUseful Results on Trees(关于树的结论)Rooted Trees(有根树)
 
Trees 
Definition 6.1. A graph G has...
    
    
    
    Trees
Definition 6.1. A graph G has another graph H as a subgraph if H
is “contained within” G. In other words, if you can take G and remove
vertices and/or edges from it until you get the graph H, then H is a
subgraph of G.
  
 - 1
 - 2
 - 3
 - 4
 
一个图G有另一个图H作为子图,如果H“包含在”G中,换句话说,如果你可以取G并移除其中的顶点和/或边,直到你得到图H,那么H就是G的子图。
例如:
 
Definition 6.2. A tree is a graph T that is connected and has no cycle
graph Cn as a subgraph.
  
 - 1
 - 2
 
树是一个连通的图T,子图没有环图Cn
例如下面就是三个树:
 
Theorem 6.1. If T is a tree containing at least one edge, then T has
at least two leaves.
  
 - 1
 - 2
 
如果T是一个至少包含一条边的树,那么T至少有两个叶。
Useful Results on Trees(关于树的结论)

 如果我们说T是一个树,那么以下两点一定成立:
- 在T中的任意两个顶点之间都有一条路径。
 - T是连通的,有n - 1条边
 
Rooted Trees(有根树)
Definition 6.4. We say that the children of a vertex v are all of the
neighbors of v at the level directly below v, and the parent of v is the
neighbor of v at the level directly above v. The height of a rooted tree is
the largest level index created when drawing the graph as above.
  
 - 1
 - 2
 - 3
 - 4
 
树的高度是树的最大索引值

 二叉树是一棵有根的树,其中每个顶点要么没有子结点,要么只有一个子结点,要么有两个子结点。你可以将它推广到m个树中,对于任意m,通过改变这里的限制,要求每个顶点最多有m个子结点。
如果每个顶点都没有子结点或两个子结点,则为满。
文章来源: blog.csdn.net,作者:十八岁讨厌编程,版权归原作者所有,如需转载,请联系作者。
原文链接:blog.csdn.net/zyb18507175502/article/details/124954705
        【版权声明】本文为华为云社区用户转载文章,如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱:
            cloudbbs@huaweicloud.com
        
        
        
        
        - 点赞
 - 收藏
 - 关注作者
 
            
           
评论(0)