What is the degree of a tree? (As in, a tree ADT)

前端 未结 7 699
星月不相逢
星月不相逢 2021-01-02 03:27

I understand that the degree of a node is the number of children it has.

However, how do we define the degree of a tree?

7条回答
  •  礼貌的吻别
    2021-01-02 04:23

    The degree of a node is the number of its children. The degree of a tree is the maximum degree of any of its nodes.

提交回复
热议问题