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

前端 未结 3 1215
走了就别回头了
走了就别回头了 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条回答
  •  情书的邮戳
    2021-01-02 00:20

    Degree represents the lower bound on the number of children a node in the B Tree can have (except for the root). i.e the minimum number of children possible. Whereas the Order represents the upper bound on the number of children. ie. the maximum number possible.

    B Tree properties with respect to the Order

    NOTE: Wikipedia also states these

    B Tree Properties with respect to the Degree

    B Tree Properties with respect to Degree

    NOTE: These can also be found in the CLRS book

提交回复
热议问题