© 1991 by British Computer Society
Improved Partial-Match Search Algorithms for BD Trees
1 School of Computer Sciences, Carleton University, Ottawa, Ontario K1S 5B6, Canada, 2 Department of Computational Science, University of Saskatchewan, Saskatoon, Saskatchewan S7N 0W0, Canada
Partial-match search queries form an important class of queries posed to a database system. Several storage structures have been proposed to answer these queries efficiently. The BD tree is an example of such a storage structure. A partial-match search algorithm, called AORIG, is given in Ref. 5. This paper presents three algorithms ALOCAL, ACOMP and AGLOBAL that represent three levels of improvement to AORIG. Each one yields successively more benefit at the cost of more complexity. All the improvements centre on avoiding the exploration of unnecessary OUT branches. It is shown that AGLOBAL is the best partial-match search algorithm in the sense that no other algorithm searches fewer internal and external nodes. The worst-case complexity of performing a partial-match search in BD trees using AGLOBAL is shown to be the same as that for the k-d trees.
Received May 1987. revised March 1991.
* To whom correspondence should be addressed. Now at: School of Computer Science, Carleton University, Ottawa, Ontario K1S 5B6, Canada.
Department of Computational Science, University of Saskatchewan, Saskatoon, Saskatchewan S7N 0W0, Canada