It suces to redistribute index entry with key 20 weve

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ng 19* and 20* ... Root 17 5 2* 3* 27 13 5* 7* 8* 14* 16* 22* 24* 30 27* 29* 33* 34* 38* 39* •  Dele6ng 19* is easy. •  Dele6ng 20* is done with re ­distribu6on. No6ce how middle key is copied up. ... And Then Dele6ng 24* •  Must merge. •  Observe `toss’ of index entry (on right), and `pull down’ of index entry (below). 30 22* 27* 29* 33* 34* 38* 39* Root 5 2* 3* 5* 7* 8* 13 14* 16* 17 30 22* 27* 29* 33* 34* 38* 39* Example of Non ­leaf Re ­distribu6on •  Tree is shown below during dele2on of 24*. (What could be a possible ini6al tree?) •  In contrast to previous example, can re ­distribute entry from leV child of root to right child. Root 22 5 2* 3* 5* 7* 8* 13 14* 16* 17 30 20 17* 18* 20* 21* 22* 27* 29* 33* 34* 38* 39* AVer Re ­distribu6on •  Intui6vely, entries are re ­distributed by `pushing through’ the splitng entry in the parent node. •  It suffi...
View Full Document

This document was uploaded on 03/12/2014 for the course CSCI 165B at UC Davis.

Ask a homework question - tutors are online