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

前端 未结 7 704
星月不相逢
星月不相逢 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.

    0 讨论(0)
提交回复
热议问题