What is the difference btw “Order” and “Degree” in terms of Tree data structure

前端 未结 3 1197
走了就别回头了
走了就别回头了 2021-01-01 23:54

B-Tree Definition they use the \'order\' term in :

According to Knuth\'s definition, a B-tree of order m is a tree which satisfies the following properties:
         


        
3条回答
  •  旧时难觅i
    2021-01-02 00:15

    A B-tree is a specific type of tree which, among other things, has a maximum number of children per node. The order of a B-tree is that maximum. A Binary Search Tree, for example, has an order of 2.

    The degree of a node is the number of children it has. So every node of a B-tree has a degree greater than or equal to zero and less than or equal to the order of the B-tree.

    A tree doesn't have a "degree," except in that its nodes have degrees. So a tree has a maximum degree and a minimum degree, referring to the maximum and minimum degrees of its nodes.

    Similar question here.

    I hope that helps!

提交回复
热议问题