Maximum likelihood analysis of algorithms and data structures

  • Authors:
  • Ulrich Laube;Markus E. Nebel

  • Affiliations:
  • Fachbereich Informatik, Technische Universität Kaiserslautern, Gottlieb-Daimler-Straβe, 67663 Kaiserslautern, Germany;Fachbereich Informatik, Technische Universität Kaiserslautern, Gottlieb-Daimler-Straβe, 67663 Kaiserslautern, Germany

  • Venue:
  • Theoretical Computer Science
  • Year:
  • 2010

Quantified Score

Hi-index 5.23

Visualization

Abstract

We present a new approach for an average-case analysis of algorithms and data structures that supports a non-uniform distribution of the inputs and is based on the maximum likelihood training of stochastic grammars. The approach is exemplified by an analysis of the expected size of binary tries as well as by three sorting algorithms and it is compared to the known results that were obtained by traditional techniques. Investigating traditional settings like the random permutation model, we rediscover well-known results formerly derived by pure analytic methods; changing to biased data yields original results. All but one step of our analysis can be automated on top of a computer-algebra system. Thus our new approach can reduce the effort required for an average-case analysis, allowing for the consideration of realistic input distributions with unknown distribution functions at the same time. As a by-product, our approach yields an easy way to generate random combinatorial objects according to various probability distributions.