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