i want to know which data structure(AVL, B-Tree, etc...) is used in most popular relational databases. and also in what way the data structure is superior than other in-class data structures? if possible a small comparison could help me a lot! thanks in advance!
Asked
Active
Viewed 1.2k times
13
-
1http://en.wikipedia.org/wiki/B%2B_tree – Romain Hippeau Oct 25 '10 at 15:08
3 Answers
13
It's usually B-tree or variants thereof, primarily because it packs nodes into blocks, unlike binary trees such as AVL.
A node of a B-tree has a fixed maximum size and holds multiple keys and multiple pointers to child nodes, meaning fewer blocks need to be retrieved from disk to look up a value (compared to a binary tree).
The Wikipedia article on B+ trees has a good introduction from the angle of its application to databases.

Joey Adams
- 41,996
- 18
- 86
- 115
3
I would choose the B+ Selection Tree because it is appropriate for efficient insertion, deletion and range queries but if the database has not been changed since it was created, then a SIMPLE LINEAR INDEX is required

Abidemi
- 31
- 1