06.09.2014 Views

Splay Trees

Splay Trees

Splay Trees

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.

1.3.3.4 Deletion Example<br />

b)<br />

Figure 6. Split example<br />

There is given a splay tree as presented in figure 7.a. The task is to delete node with key 63 from<br />

the splay tree. The first step is to perform a MEMBER operation on node with key 63. This step will bring<br />

node with key 63 as root node. After this operation the splay tree will look like in figure 7.b<br />

a)<br />

The second step is to perform a join operation on<br />

left and right subtrees of node 63. These subtrees<br />

are marked in figure 7.b. The outcome of this<br />

procedure is presented in figure7.c.<br />

b)<br />

c)<br />

Figure 7. Deletion example<br />

11

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

Saved successfully!

Ooh no, something went wrong!