On the average size of the intersection of binary trees

The average-case analysis of algorithms for binary search trees yields very different results from those obtained under the uniform distribution. The analysis itself is more complex and replaces algebraic equations by integral equations. In this work this analysis is carried out for the computation...

Descripción completa

Detalles Bibliográficos
Autores: Baeza Yates, Ricardo, Cases Muñoz, Rafel, Díaz Cort, Josep|||0000-0003-4422-0067, Martínez Parra, Conrado|||0000-0003-1302-9067
Tipo de recurso: informe técnico
Fecha de publicación:1989
País:España
Institución:Universitat Politècnica de Catalunya (UPC)
Repositorio:UPCommons. Portal del coneixement obert de la UPC
Idioma:inglés
OAI Identifier:oai:upcommons.upc.edu:2117/110571
Acceso en línea:https://hdl.handle.net/2117/110571
Access Level:acceso abierto
Palabra clave:Trees (Graph theory)
Arbres (Teoria de grafs)
Àrees temàtiques de la UPC::Informàtica::Enginyeria del software
Descripción
Sumario:The average-case analysis of algorithms for binary search trees yields very different results from those obtained under the uniform distribution. The analysis itself is more complex and replaces algebraic equations by integral equations. In this work this analysis is carried out for the computation of the average size of the intersection of two binary trees. The development of this analysis involves Bessel functions that appear in the solutions of partial differential equations, and the result has an average size of $O(n^{2\sqrt 2 - 2} /\sqrt {\log n} )$, contrasting with the size $O(1)$ obtained when considering a uniform distribution.