On the number of full levels in tries

  • Authors:
  • Charles Knessl;Wojciech Szpankowski

  • Affiliations:
  • Department of Mathematics, Statistics & Computer Science, University of Illinois at Chicago, Chicago, Illinois;Department of Computer Science, Purdue University, West Lafayette, Indiana

  • Venue:
  • Random Structures & Algorithms
  • Year:
  • 2004

Quantified Score

Hi-index 0.00

Visualization

Abstract

We study the asymptotic distribution of the fill-up level in a binary trie built over n independent strings generated by a biased memoryless source. The fill-up level is the number of full levels in a tree. A level is full if it contains the maximum allowable number of nodes (e.g., in a binary tree level k can have up to 2k nodes). The fill-up level finds many interesting applications, e.g., in the internet IP lookup problem and in the analysis of level compressed tries (LC tries). In this paper, we present a complete asymptotic characterization of the fill-up distribution. In particular, we prove that this distribution concentrates on one or two points around the most probably value k = ⌊log1/qn - log log log n + 1 + log log(p/q)⌋, where p q = 1 - p is the probability of generating the more likely symbol (while q = 1 - p is the probability of the less likely symbol). We derive our results by analytic methods such as generating functions, Mellin transform, the saddle point method, and analytic depoissonization. We also present some numerical verification of our results.