Optimal search in trees

Citation
Y. Ben-asher et al., Optimal search in trees, SIAM J COMP, 28(6), 1999, pp. 2090-2102
Citations number
5
Categorie Soggetti
Computer Science & Engineering
Journal title
SIAM JOURNAL ON COMPUTING
ISSN journal
00975397 → ACNP
Volume
28
Issue
6
Year of publication
1999
Pages
2090 - 2102
Database
ISI
SICI code
0097-5397(19990817)28:6<2090:OSIT>2.0.ZU;2-#
Abstract
It is well known that the optimal solution for searching in a finite total order set is binary search. In binary search we divide the set into two "ha lves" by querying the middle element and continue the search on the suitabl e half. What is the equivalent of binary search when the set P is partially ordered? A query in this case is to a point x is an element of P, with two possible answers: "yes" indicates that the required element is "below" x o r "no" if the element is not below x. We show that the problem of computing an optimal strategy for search in posets that are tree-like (or forests) i s polynomial in the size of the tree and requires at most O(n(4) log(3) n) steps. Optimal solutions of such search problems are often needed in program testi ng and debugging, where a given program is represented as a tree and a bug should be found using a minimal set of queries. This type of search is also applicable in searching classified large tree-like databases (e.g., the In ternet).