| Finding an optimal tree searching strategy in linear time |
| Full text |
Pdf
(457 KB)
|
| Source
|
Symposium on Discrete Algorithms
archive
Proceedings of the nineteenth annual ACM-SIAM symposium on Discrete algorithms
table of contents
San Francisco, California
Pages 1096-1105
Year of Publication: 2008
|
|
Authors
|
|
| Sponsors |
|
| Publisher |
Society for Industrial and Applied Mathematics
Philadelphia, PA, USA
|
| Bibliometrics |
Downloads (6 Weeks): 9, Downloads (12 Months): 66, Citation Count: 0
|
|
|
ABSTRACT
We address the extension of the binary search technique from sorted arrays and totally ordered sets to trees and tree-like partially ordered sets. As in the sorted array case, the goal is to minimize the number of queries required to find a target element in the worst case. However, while the optimal strategy for searching an array is straightforward (always query the middle element), the optimal strategy for searching a tree is dependent on the tree's structure and is harder to compute. We present an O(n)-time algorithm that finds the optimal strategy for binary searching a tree, improving the previous best O(n3)-time algorithm. The significant improvement is due to a novel approach for computing subproblems, as well as a method for reusing parts of already computed subproblems, and a linear-time transformation from a solution in the form of an edge-weighed tree into a solution in the form of a decision tree.
REFERENCES
Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.
| |
1
|
|
| |
2
|
|
| |
3
|
|
| |
4
|
Moses Charikar , Ronald Fagin , Venkatesan Guruswami , Jon Kleinberg , Prabhakar Raghavan , Amit Sahai, Query strategies for priced information, Journal of Computer and System Sciences, v.64 n.4, p.785-819, June 2002
[doi> 10.1006/jcss.2002.1828]
|
| |
5
|
C. Daskalakis, R. M. Karp, E. Mossel, S. Riesen-feld, and E. Verbin. Sorting and selection in posets. arXiv:0707.1532, 2007.
|
| |
6
|
E. Demaine. Private communication, 2007.
|
| |
7
|
|
 |
8
|
|
| |
9
|
|
| |
10
|
D. E. Knuth. Sorting and Searching, volume 3 of The Art of Computer Programming. Addison-Wesley, Reading, Massachusetts, second edition, 1998.
|
| |
11
|
E. Laber and L. T. Nogueira. Fast searching in trees. Electronic Notes in Discrete Mathematics, 7:1--4, 2001.
|
| |
12
|
N. Linial and M. Saks. Every poset has a central element. Journal of combinatorial theory, A 40(2):195--210, 1985.
|
| |
13
|
N. Linial and M. Saks. Searching ordered structures. Journal of algorithms, 6(1):86--103, 1985.
|
| |
14
|
G. Navarro, R. Baeza-Yates, E. Barbosa, N. Ziviani, and W. Cunto. Binary searching with non-uniform costs and its application to text retrieval. Algorithmica, 27(2):145--169, 2000.
|
| |
15
|
|
| |
16
|
W. W. Peterson. Addressing for random-access storage. IBM Journal of Research and Development, 1(2):130--146, 1957.
|
|