Tree is a discrete structure that represents hierarchical relationships between individual elements or nodes. A tree in which a parent has no more than two children is called a binary tree. Tree and its Properties Definition − A Tree is a connected acyclic undirected graph. There is a unique path between every pair of vertices in G G . A tree with N number of vertices contains ( N − 1 ) ( N − 1 ) number of edges. The vertex which is of 0 degree is called root of the tree. The vertex which is of 1 degree is called leaf node of the tree and the degree of an internal node is at least 2. Example − The following is an example of a tree − Centers and Bi-Centers of a Tree The center of a tree is a vertex with minimal eccentricity. The eccentricity of a vertex X X in a tree G G is the maximum distance between the vertex X X and any other vertex of the tree. The maximum eccentricity is the tree diameter. If a ...
Comments
Post a Comment