Skip to content
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

Closed
cesarghali opened this issue May 18, 2013 · 5 comments
Closed

Doubts about Top-Down Splitting #13

cesarghali opened this issue May 18, 2013 · 5 comments
Labels

Comments

@cesarghali
Copy link
Collaborator

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?

@diedthreetimes
Copy link
Collaborator

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

@cesarghali
Copy link
Collaborator Author

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

@ekinoguz
Copy link
Owner

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

@cesarghali
Copy link
Collaborator Author

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.

@diedthreetimes
Copy link
Collaborator

I use the linked list bit but insert isn't finished. Linking comes into
play when nodes start splitting.
On May 19, 2013 11:09 AM, "Cesar Ghali" notifications@github.com wrote:

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.


Reply to this email directly or view it on GitHubhttps://github.com//issues/13#issuecomment-18121990
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants