532 views
0 votes
0 votes
Why B-tree & B+ tree is used in database indexing instead of other tree like BST, Binary tree etc??

2 Answers

1 votes
1 votes

In Computer Science we generally talk about Space complexity and Time complexity, we always want to decrease the searching cost, i/o cost of accessing the file, so that if we use the binary tree at max we can have 2 nodes for each node but in B and B+ tree we have order of node we max no. of order B and B+ tree .and minimum level of B and B+ tree we have many no. key and in Binary Tree this is not possible so that, searching level get decrease in the B and B+ tree ......and we  search randomly and sequence manner   in  B and B+ tree  

0 votes
0 votes
B and B+ trees are balanced. The distance from root to all leaves are equal. Searching is efficient. Memory transfers are also less.So they are prefered over BST and Binary trees.

Related questions

1 votes
1 votes
0 answers
1
newdreamz a1-z0 asked Jan 2, 2019
515 views
For range queries every B+ tree index requires less I/O than a full table scan.can anyone explain?
0 votes
0 votes
1 answer
2
Subham Nagar asked Dec 15, 2018
535 views
Consider a B+ -tree in which the maximum no. of keys in a root is 11. What will be minimum no. of keys in a non-root node? What will be the same in a B-TreePlease also re...
2 votes
2 votes
2 answers
3
aditi19 asked Nov 23, 2018
1,728 views
what is the minimum and maximum number of keys for non-leaf nodes and leaf nodes for B+ Tree of order p?
0 votes
0 votes
0 answers
4
Shamim Ahmed asked Nov 16, 2018
296 views
https://gateoverflow.in/3723/gate2004-it-79In the above question why record pointer is considered in internal node size calculation?