Abstract
Mellin transforms and Dirichlet series are useful in quantifying periodicity phenomena present in recursive divide-and-conquer algorithms. This note illustrates the techniques by providing a precise analysis of the standard topdown recursive mergesort algorithm, in the average case, as well as in the worst and best cases. It also derives the variance and shows that the cost of mergesort has a Gaussian limiting distribution. The approach is applicable to a number of divide-and-conquer recurrences.
Similar content being viewed by others
References
Allouche, J.-P.: Automates finis en théorie des nombres. Expo. Math.5, 239–266, (1987)
Allouche, J.-P., Cohen, H.: Dirichlet series and curious infinite products. Bull. Lond. Math. Soc.17, 531–538 (1985)
Allouche, J.-P., Shallit, J.: The ring ofk-regular sequences. Theor. Comput. Sci.98, 163–197 (1992)
Apostol, T.M.: Introduction to analytic number theory. Berlin, Heidelberg, New York: Springer 1976
Billingsley, P.: Probability and measure, 2nd edn. New York: John Wiley 1986
Cormen, T.H., Leiserson, C.E., Rivest, R.L.: Introduction to algorithms. New York: MIT Press 1990
Delange, H.: Sur la fonction sommatoire de la fonction somme des chiffres. Enseign. Math.21 (1), 31–47 (1975)
Dumas, P.: Critères de B-régularité. Cah. Sémin. Théorie Nombres (Bordeaux) (1994, to appear)
Dumont, J.-M., Thomas, A.: Systèmes de numération et fonctions fractales relatifs aux substitutions. Theor. Comput. Sci.65, 153–169 (1989)
Flajolet, P., Golin, M.: Exact asymptotics of divide-and-conquer recurrences. In: Lingas, S.C.A., Karlsson, R. (eds.) Automata, languages, and programming (Lect. Notes Comput. Sci., vol. 700, pp. 137–149) Berlin, Heidelberg, New York: Springer 1993
Flajolet, P., Grabner, P., Kirschenhofer, P., Prodinger, H., Tichy, R.: Mellin transforms and asymptotics: Digital sums. Theor. Comput. Sci.123, 291–314 (1994)
Flajolet, P., Martin, G.N.: Probabilistic counting algorithms for data base applications. J. Comput. Syst. Sci.31 (2), 182–209 (1985)
Knuth, D.E.: The art of comput4r programming, vol. 3: Fundamental algorithms, 2nd edn. Reading, MA: Addison-Wesley 1968
Knuth, D.E.: The art of computer programming, vol. 3: Sorting and searching. Reading, MA: Addison-Wesley 1973
Sedgwick, R.: Algorithms, 2nd edn. Reading, MA: Addison-Wesley 1988
Stolarsky, K.B.: Power and exponential sums of digital sums related to binomial coefficients. SIAM J. Appl. Math.32 (4) 717–730 (1977)
Vardi, I.: Computational recreations in mathematica. Reading, MA: Addison Wesley 1991
Author information
Authors and Affiliations
Rights and permissions
About this article
Cite this article
Flajolet, P., Golin, M. Mellin transforms and asymptotics. Acta Informatica 31, 673–696 (1994). https://doi.org/10.1007/BF01177551
Received:
Issue Date:
DOI: https://doi.org/10.1007/BF01177551