Algorithms in C, Parts 1-4 by Robert Sedgewick

Algorithms in C, Parts 1-4 by Robert Sedgewick

Author:Robert Sedgewick
Language: eng
Format: epub, pdf
Publisher: Pearson Education Limited (US titles)
Published: 1998-03-18T16:00:00+00:00


Exercises

8.45 Suppose that mergesort is implemented to split the file at a random position, rather than exactly in the middle. How many comparisons are used by such a method to sort N elements, on the average?

8.46 Study the performance of mergesort when it is sorting strings. How many character comparisons are involved when a large file is sorted, on the average?

8.47 Run empirical studies to compare the performance of quicksort for linked lists (see Exercise 7.4) and top-down mergesort for linked lists (Program 8.7).



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.