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.

Knuth's classic text on Sort<strong>in</strong>g <strong>and</strong> Search<strong>in</strong>g [63] conta<strong>in</strong>s an extensive history of<br />

the sort<strong>in</strong>g problem <strong>and</strong> algorithms for solv<strong>in</strong>g it. Huang <strong>and</strong> Langston [52] describe<br />

how to merge two sorted lists <strong>in</strong>-place <strong>in</strong> l<strong>in</strong>ear time. Our set ADT is derived from the<br />

set ADT of Aho, Hopcroft, <strong>and</strong> Ullman [5]. The st<strong>and</strong>ard quick-sort algorithm is due<br />

to Hoare [49]. More <strong>in</strong>formation about r<strong>and</strong>omization, <strong>in</strong>clud<strong>in</strong>g Chernoff bounds,<br />

can be found <strong>in</strong> the appendix <strong>and</strong> the book by Motwani <strong>and</strong> Raghavan [79]. The<br />

quick-sort analysis given <strong>in</strong> this chapter is a comb<strong>in</strong>ation of an analysis given <strong>in</strong> a<br />

previous edition of this book <strong>and</strong> the analysis of Kle<strong>in</strong>berg <strong>and</strong> Tardos [59]. The<br />

quick-sort analysis of Exercise C-11.7 is due to Littman. Gonnet <strong>and</strong> Baeza-Yates<br />

[41] provide experimental comparisons <strong>and</strong> theoretical analyses of a number of<br />

different sort<strong>in</strong>g algorithms. The term "prune-<strong>and</strong>-search" comes orig<strong>in</strong>ally from the<br />

computational geometry literature (such as <strong>in</strong> the work of Clarkson [22] <strong>and</strong> Megiddo<br />

[72, 73]). The term "decrease-<strong>and</strong>-conquer" is from Levit<strong>in</strong> [68].<br />

Chapter 12<br />

Text Process<strong>in</strong>g<br />

740

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

Saved successfully!

Ooh no, something went wrong!