| List processing: sort again, naturally |
| Full text |
Pdf
(337 KB)
|
| Source
|
ACM SIGCSE Bulletin
archive
Volume 37 , Issue 2 (June 2005)
table of contents
COLUMN: Reviewed papers
table of contents
Pages: 46 - 48
Year of Publication: 2005
ISSN:0097-8418
|
|
Author
|
|
| Publisher |
|
| Bibliometrics |
Downloads (6 Weeks): 10, Downloads (12 Months): 31, Citation Count: 1
|
|
|
ABSTRACT
This paper discusses a possible student project for use within the Data Structures and Algorithms treatment of linked lists. Students can explicitly compare the recursive list-oriented MergeSort algorithm with iterative list-oriented MergeSort algorithms (with O(n) space overhead) including the "Natural MergeSort." The author's experimental results are shown for implementations in C and in Java.
REFERENCES
Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.
| |
1
|
Sedgewick, Robert. Algorithms in C; Parts 1-4. Third edition: Addison, Wesley, 1998.
|
| |
2
|
|
| |
3
|
|
| |
4
|
|
| |
5
|
|
| |
6
|
Proof provided by Dr. Ray Hamel of my department: There are on average (n-1)/2 sequence breaks in a sequence of n randomly selected distinct items. Each sequence S of n items {where S = (S1, . . ., Sn)} has its reverse sequence R such that Rj = Sn-j+1. Both sequences together have n-1 sequence breaks: for each adjacent pair of (distinct) values, the two values are out of order either in R or in S (but not in both), and there are n-1 adjacent pairs. For randomly selected sequences, both sets are equally likely, so that there are (n-1)/2 sequence breaks on average.
|
| |
7
|
Rolfe, Timothy. "Algorithm Alley: Randomized Shuffling", Dr. Dobb's Journal, Vol. 25, No. 1 (January 2000), pp. 113--14.
|
|