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.

P-14.2<br />

Implement the B-tree data structure, assum<strong>in</strong>g a block size of 1,024 <strong>and</strong> <strong>in</strong>teger<br />

keys. Test the number of "disk transfers" needed to process a sequence of<br />

dictionary operations.<br />

P-14.3<br />

Implement an external-memory sort<strong>in</strong>g algorithm <strong>and</strong> compare it<br />

experimentally to any of the <strong>in</strong>ternal-memory sort<strong>in</strong>g algorithms described <strong>in</strong><br />

this book.<br />

Chapter Notes<br />

Knuth [60] has very nice discussions about external-memory sort<strong>in</strong>g <strong>and</strong> search<strong>in</strong>g,<br />

<strong>and</strong> Ullman [93] discusses external memory structures for database systems. The<br />

reader <strong>in</strong>terested <strong>in</strong> the study of the architecture of hierarchical memory systems is<br />

referred to the book chapter by Burger et al. [18] or the book by Hennessy <strong>and</strong><br />

Patterson [48]. The h<strong>and</strong>book by Gonnet <strong>and</strong> Baeza-Yates [41] compares the<br />

performance of a number of different sort<strong>in</strong>g algorithms, many of which are externalmemory<br />

algorithms. B-trees were <strong>in</strong>vented by Bayer <strong>and</strong> McCreight [11] <strong>and</strong> Comer<br />

[24] provides a very nice overview of this data structure. The books by Mehlhorn [74]<br />

<strong>and</strong> Samet [84] also have nice discussions about B+trees <strong>and</strong> their variants. Aggarwal<br />

<strong>and</strong> Vitter [2] study the I/O complexity of sort<strong>in</strong>g <strong>and</strong> related problems, establish<strong>in</strong>g<br />

upper <strong>and</strong> lower bounds, <strong>in</strong>clud<strong>in</strong>g the lower bound for sort<strong>in</strong>g given <strong>in</strong> this chapter.<br />

Goodrich et al. [44] study the I/O complexity of several computational geometry<br />

problems. The reader <strong>in</strong>terested <strong>in</strong> further study of I/O+efficient algorithms is<br />

encouraged to exam<strong>in</strong>e the survey paper of Vitter [95].<br />

910

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

Saved successfully!

Ooh no, something went wrong!