Augmented binary search tree

看板DFBSD_kernel作者時間14年前 (2011/05/27 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/2 (看更多)
Hi, all: I found that in sys/tree.h, the augmented rbtree is not supported by DFBSD currently. However, the B-WF2Q+ algorithm needed by BFQ scheduler which I am implementing as GSoC project needs augmented tree to achieve effective search operations (O(lgn), instead of O(n) of worst case, if simply uses rbtree). Is there any obstacles preventing us to port other BSD's tree.h with augment support? I took a brief look at their tree.h, and it seemed not hard to port. On the other hand, is there any rb-tree implementation like the one of Linux that is BSD-licensed? I could probably use that kind implementation to update augment information manually. Otherwise, I will have to implement another balanced tree with augment support. Thanks! Brills Peng
文章代碼(AID): #1DtfLcL4 (DFBSD_kernel)
文章代碼(AID): #1DtfLcL4 (DFBSD_kernel)