On the number of string lookups in BSTs (and related algorithms) with digital access

Binary search trees and quicksort are examples of comparison-based data structure and algorithm respectively. Comparison-based data structures and algorithms can be can be augmented so that no redundant character comparisons are made. Unnoticed, this approach also avoids looking up the string in som...

Descripción completa

Detalles Bibliográficos
Autor: Frias Moya, Leonor
Tipo de recurso: informe técnico
Fecha de publicación:2009
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/87918
Acceso en línea:https://hdl.handle.net/2117/87918
Access Level:acceso abierto
Palabra clave:BST
TST
Strings
Memory hierarchies
Analysis of algorithms
Àrees temàtiques de la UPC::Informàtica::Informàtica teòrica
Descripción
Sumario:Binary search trees and quicksort are examples of comparison-based data structure and algorithm respectively. Comparison-based data structures and algorithms can be can be augmented so that no redundant character comparisons are made. Unnoticed, this approach also avoids looking up the string in some nodes. This paper haracterizes analytically the number of string lookups in so-augmented BSTs, quicksort and quickselect. Besides, we also characterize a variant proposed in this paper to reduce further the number of string lookups.