Binary Tree + Insanity.
Posted: Tue Mar 13, 2007 10:29 am
Some quick questions here.
a) Is there a handy dandy equation to work out how many nodes, for a complete binary search tree of a given height?
b) and something to reverse that equation, given X nodes, what would be the height?
c) Any good references on AVL Trees would be appreciated. (My textbook is freaking horrible!)
d) Is it forgivable to use some recursive functions in Kernel code?
e) Any advice on how to make recursive calls as... friendly to the stack as possible would be appreciated, as Zenobit currently only has a 4KiB Stack and I dont particularly want to increase it drastically!
Much thanks!
~Zeii.
a) Is there a handy dandy equation to work out how many nodes, for a complete binary search tree of a given height?
b) and something to reverse that equation, given X nodes, what would be the height?
c) Any good references on AVL Trees would be appreciated. (My textbook is freaking horrible!)
d) Is it forgivable to use some recursive functions in Kernel code?
e) Any advice on how to make recursive calls as... friendly to the stack as possible would be appreciated, as Zenobit currently only has a 4KiB Stack and I dont particularly want to increase it drastically!
Much thanks!
~Zeii.