SAP Interview Question
53 Interview Reviews |
Back to all SAP Interview Questions & Reviews
Interview questions and reviews posted anonymously by interview candidates
Interview Question for Software Engineer at SAP:
What is B Tree and B+ tree and what are the difference?
| Tags: | data structures, b+ tree, b tree See more , See less 8 |
Helpful Question?
Yes |
No
Inappropriate?
1 of 1 people found this helpful
by Interview Candidate:
A B+ tree or B plus tree is a type of tree which represents sorted data in a way that allows for efficient insertion, retrieval and removal of records, each of which is identified by a key. It is a dynamic, multilevel index, with maximum and minimum bounds on the number of keys in each index segment (usually called a "block" or "node").
In a B+ tree, in contrast to a B-tree, all records are stored at the leaf level of the tree; only keys are stored in interior nodes.
Advantages of B+-trees:1) Any record can be fetched in equal number of disk accesses.2) Range queries can be performed easily as leaves are linked up3) Height of the tree is less as only keys are used for indexing4) Supports both random and sequential access
.Disadvantages of B+-trees:Insert and delete operations are complicatedRoot node becomes a hotspot