That's a reasonable way of doing it.
When you insert R you can split the nodes up so that F is in the right one, but that's just arbitrary. It would result in arity 2, 3, and 2 in 3 bottom nodes instead of 3 and 4 in 2 bottom nodes, but it's just as valid. Unless for some reason you're required to implement a B+ tree using a specific algorithm (like for a class), this doesn't really matter.
Main Topics
Browse All Topics





by: epasquierPosted on 2009-10-01 at 04:13:26ID: 25467474
What do you call a B+ tree ? If I understand correctly your example, it is a two-way linked chain of 5 values array, used to quickly implement a sorted list of values.
It seems complicated though, why not use a two way linked chain of simple values ? Why is F in two arrays when you insert R ?