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

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

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

Code Fragment 7.13: Method diskSpace pr<strong>in</strong>ts<br />

the name <strong>and</strong> disk space used by the directory<br />

associated with each <strong>in</strong>ternal node of a file-system tree.<br />

This method calls the auxiliary methods name <strong>and</strong> size,<br />

which should be def<strong>in</strong>ed to return the name <strong>and</strong> size of<br />

the file/directory associated with a node.<br />

Other K<strong>in</strong>ds of Traversals<br />

394

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

Saved successfully!

Ooh no, something went wrong!