AVERAGE-CASE ANALYSIS OF THE MERGING ALGORITHM OF HWANG AND LIN

Citation
Wf. Delavega et al., AVERAGE-CASE ANALYSIS OF THE MERGING ALGORITHM OF HWANG AND LIN, Algorithmica, 22(4), 1998, pp. 483-489
Citations number
7
Categorie Soggetti
Mathematics,"Computer Science Software Graphycs Programming",Mathematics,"Computer Science Software Graphycs Programming
Journal title
ISSN journal
01784617
Volume
22
Issue
4
Year of publication
1998
Pages
483 - 489
Database
ISI
SICI code
0178-4617(1998)22:4<483:AAOTMA>2.0.ZU;2-T
Abstract
We derive an asymptotic equivalent to the average running time of the merging algorithm of Hwang and Lin applied on two linearly ordered lis ts of numbers a(1) < a(2) < ... < a(m) and b(1) < b(2) < ... < b(n) wh en m and n tend to infinity in such a way that the ratio rho = min is constant. We show that the distribution of the running time is concent rated around its expectation except when rho is a power of 2. When rho is a power of 2, we obtain an asymptotic equivalent for the expectati on of the running time.