10.09.2013 Views

1. Advanced Data Structure using C++

1. Advanced Data Structure using C++

1. Advanced Data Structure using C++

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

B + TREES<br />

LECTURE NOTES OF ADVANCED DATA STRUCTURE (MT-CSE 110)<br />

A simple B+ tree example linking the keys 1–7 to data values d1‐d7. Note the<br />

linked list (red) allowing rapid in‐order traversal.<br />

In computer science, a B+ tree (BplusTree) is a type of tree which represents<br />

sorted data in a way that allows for efficient insertion, retrieval and removal of<br />

records, each of which is identified by a key. It is a dynamic, multilevel index,<br />

with maximum and minimum bounds on the number of keys in each index<br />

segment (usually called a "block" or "node"). In a B+ tree, in contrast to a B‐<br />

tree, all records are stored at the leaf level of the tree; only keys are stored in<br />

interior nodes.<br />

The order (branching factor) of a B+ tree measures the capacity of nodes (i.e.<br />

the number of children nodes) in the tree. It is defined as a number d such that<br />

, where m is the number of children in each node. For example,<br />

if the order of a B+ tree is 7, each internal node (except for the root) may have<br />

between 4 and 7 children; the root may have between 2 and 7<br />

Prepared By :­<br />

Er. Harvinder Singh<br />

Assist Prof., CSE, H.C.T.M (Kaithal) Page ‐ 220 ‐

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!