【发布时间】:2014-04-16 11:27:01
【问题描述】:
我在网上得到了不同的答案
- https://in.answers.yahoo.com/question/index?qid=20100508110438AAbKyMj
- http://wiki.answers.com/Q/How_many_ordered_trees_are_possible_with_3_nodes?#slide=2
我还在SO 看到了一个问题,但对我没有多大帮助
答案应该是什么?
-
这也是一棵树吗?
a / b / c
【问题讨论】:
-
有点不清楚;也许不同的答案是指“有序树”的不同定义;例如,必须考虑边缘是否指向。
-
是的,这是一棵树,所以我也会回答 12。
-
我正在考虑的(有方向)显然是指en.wikipedia.org/wiki/Arborescence_(graph_theory)
-
@user189 也是二进制的吗?
-
@user189 +1 为这些类型的数据结构引入了正确的术语。当计算机科学家轻率地使用数学术语和符号时,这让我很恼火。
标签: algorithm data-structures tree binary-tree ordered-tree