-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doubts about Top-Down Splitting #13
Comments
No, when you split a node at level 1, the pointers all still point to real data that is at least half full. At least that is what I thought... I could draw a picture :P |
Here's what I was thinking. Assume you have one full node at level 1 with pointers to 5 half-full nodes at level 2 (leveling starts from the root). If you split the node at level 1 into two, then you will end up with 6 pointers but you only have 5 pages at level 2 which none of them need splitting. I would need a picture because I don't know why I am not able to imagine it :P |
Sky and I discussed this: When we split a full node, we can remove the median key and end up with same number of pointers |
Wouldn't this change the structure of the non-leaf node? I think I need to discuss this in person when we meet. Btw, there's something else that we missed, the + part of the B+ Tree :) which is having all leaf nodes linked in a list. |
I use the linked list bit but insert isn't finished. Linking comes into
|
There is something wired about it every time I think about it. We are splitting nodes while going down the tree. We might split a node in level 1 and then when we go down the lower layer node, in level 2, might not need splitting, this will leave a page pointer in the node at level 1 with nothing to point at. Is that right?
The text was updated successfully, but these errors were encountered: