SUBLINEAR MERGING AND NATURAL MERGESORT

Citation
S. Carlsson et al., SUBLINEAR MERGING AND NATURAL MERGESORT, Algorithmica, 9(6), 1993, pp. 629-648
Citations number
10
Categorie Soggetti
Computer Sciences",Mathematics,Mathematics,"Computer Applications & Cybernetics
Journal title
ISSN journal
01784617
Volume
9
Issue
6
Year of publication
1993
Pages
629 - 648
Database
ISI
SICI code
0178-4617(1993)9:6<629:SMANM>2.0.ZU;2-4
Abstract
The complexity of merging two sorted sequences into one is linear in t he worst case as well as in the average case. There are, however, inst ances for which a sublinear number of comparisons is sufficient. We co nsider the problem of measuring and exploiting such instance easiness. The merging algorithm presented, Adaptmerge, is shown to adapt optima lly to different kinds of measures of instance easiness. In the sortin g problem the concept of instance easiness has received a lot of atten tion, and it is interpreted by a measure of presortedness. We apply Ad aptmerge in the already adaptive sorting algorithm Natural Mergesort. The resulting algorithm, Adaptive Mergesort, optimally adapts to sever al, known and new, measures of presortedness. We also prove some inter esting results concerning the relation between measures of presortedne ss proposed in the literature.