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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

which is still greater than the separator. Both of those elements are in leaf<br />

nodes, and either can be the new separator for the two subtrees.<br />

• If the value is in an internal node, choose a new separator (either the<br />

largest element in the left subtree or the smallest element in the right<br />

subtree), remove it from the leaf node it is in, and replace the element to<br />

be deleted with the new separator.<br />

• This has deleted an element from a leaf node, and so is now equivalent to<br />

the previous case.<br />

Inserting Key 33 into a B‐Tree (w/ Split)<br />

Sample B‐Tree<br />

Searching a B‐Tree for Key 21<br />

Prepared By :­<br />

Er. Harvinder Singh<br />

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

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

Saved successfully!

Ooh no, something went wrong!