请输入您要查询的字词:

 

单词 RootofATree
释义

root (of a tree)

\\xyoption

all

The root of a tree is a place-holder node. It is typically drawn at the top of the page, with the other nodes below (with all nodes having the same path distance from the root at the same height.)

\\xymatrix&\\ar@-[dl]\\ar@-[dr]&&&&&\\ar@-[dr]\\ar@-[dl]&&&\\ar@-[dl]&&&&&&&

Figure: A tree with root highlighted in red.

Any tree can be redrawn this way, selecting any node as the root. This is important to note: taken as a graph in general, the notion of “root” is meaningless. We introduce a root explicitly when we begin speaking of a graph as a tree– there is nothing in general that selects a root for us.

However, there are some special cases of trees where the root can be distinguished from the other nodes implicitly due to the properties of the tree. For instance, a root is uniquely identifiable in a complete binary treeMathworldPlanetmathPlanetmath, where it is the only node with degree two.

Further, in a directed tree, there can be only one root. This is because all nodes must be reachablePlanetmathPlanetmath from that node by following the arrows between them in the proper direction.

随便看

 

数学辞典收录了18232条数学词条,基本涵盖了常用数学知识及数学英语单词词组的翻译及用法,是数学学习的有利工具。

 

Copyright © 2000-2023 Newdu.com.com All Rights Reserved
更新时间:2025/5/4 23:42:58