23.11.2014 Views

Data Structures and Algorithms in Java[1].pdf - Fulvio Frisone

Data Structures and Algorithms in Java[1].pdf - Fulvio Frisone

Data Structures and Algorithms in Java[1].pdf - Fulvio Frisone

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

<strong>Java</strong> Implementation of the L<strong>in</strong>ked B<strong>in</strong>ary Tree Structure<br />

In Code Fragments 7.16–7.18, we show portions of class L<strong>in</strong>ked B<strong>in</strong>ary<br />

Tree that implements the B<strong>in</strong>ary Tree <strong>in</strong>terface (Code Fragment 7.14)<br />

us<strong>in</strong>g a l<strong>in</strong>ked data structure. This class stores the size of the tree <strong>and</strong> a reference<br />

to the BTNode object associated with the root of the tree <strong>in</strong> <strong>in</strong>ternal variables. In<br />

404

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

Saved successfully!

Ooh no, something went wrong!