- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
树的直径(国外英文资料)
树的直径(国外英文资料)
In order to make clear the proof, first of all, the exact definition is as follows:
1. We use a ~ B to represent the unique path between any two nodes in the tree, a, B, and there are 0 or more nodes between a and B
Using X, \in, a ~ B means that the node x is on the path a, B, that is, there is a path from a to X to B (here X and a or b)
Coincident) A-B is represented by symbol a, and B is directly adjacent.
2. Distance between nodes - according to the nature of the tree, any two nodes u, V, there is a unique path between u ~ V connected,
The number of u to V is called u, and the distance between V is denoted as D (U, V);
3. The diameter of a tree the distance between the two largest nodes in a tree is called the diameter of a tree;
4. Ancestors - let R be the root of the tree T, and u is the node of T; if x, \in, R ~ u, then x is called the ancestor of u;
5. Common ancestor - if node x is the ancestor of u and also the ancestor of V, X is the common ancestor of u and v;
6. Recent public ancestors - if x is the public ancestor of u, V, and any other common ancestor y of u, V, has d (x
U, D (y) = u), then x is called u, Vs recent public ancestors. Use f (U, V) to represent the nearest public ancestor of u and V.
Lemma 1: the diameter of a tree must be equal to the distance between two nodes of a leaf.
Proof: trivial.
Lemma 2: for the three different trees in any node a, B, C, D satisfies the triangle inequality (a, b) (a, d = C + D (C, b)
).
It is proved that the nodes on a ~ C are p[1], p[2], and p[m], and the nodes on a ~ B are q[1] and q[2 respectively
],..., q[n]. Where p[1] = q[1] = a, p[m]=c, q[n]=b.
If there is a case 1: K, k m and K n p[k+1] , meet q[k+1] and for all I = k, all
There is p[i] = q[i].
Assume the existence of X, Y k+1 and p[x] = q[y], p[k]-p[k+1] ~ p[x] ~ q[y] and Q[k]q[k+1]
A loop (as p[k]=q[k], p[k+1]q[k+1], and p[x]=q[y]) is inconsistent with the nature of the tree. So sure
There is no such x, y. Therefore, there are no
文档评论(0)