Skip to content

B+ Tree's Do Not Obey Greater Then Or Equal Too Rule When Inserting Duplicate Values #12

@Zaleyact

Description

@Zaleyact

B+ Tree's Insert Values Into The Left Node When Looking At A Key That Is The Same Value Although If The Value Is The Same It Should Go To The Right Node.

To reproduce:

  1. Go to the B+ tree visualizer
  2. Put nodes in the tree to make it look like this (the link should do this for you):
Image
  1. Insert 40 Like The Screenshot above
  2. Observe That Although It Is The Same As The Root Value, It Gets Put To The Left Instead Of The Right
Image

What appears to happen is that it does not test for equality, only greater than when looking at the internal nodes, so since it sees a 40, 40>40 is false, and it goes to the left. Compare this to 40 >= 40 = true, go to the right.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions