Search in an ordered array having variable probe cost
SIAM Journal on Computing
On an efficient dynamic programming technique of F. F. Yao
Journal of Algorithms
Information retrieval: data structures and algorithms
Information retrieval: data structures and algorithms
Information Processing Letters
LATIN '00 Proceedings of the 4th Latin American Symposium on Theoretical Informatics
Strategies for Searching with Different Access Costs
ESA '99 Proceedings of the 7th Annual European Symposium on Algorithms
Efficient dynamic programming using quadrangle inequalities
STOC '80 Proceedings of the twelfth annual ACM symposium on Theory of computing
Fast Calculation of Optimal Strategies for Searching with Non-Uniform Costs
SPIRE '00 Proceedings of the Seventh International Symposium on String Processing Information Retrieval (SPIRE'00)
Optimal binary search trees with costs depending on the access paths
Theoretical Computer Science
Binary identification problems for weighted trees
WADS'11 Proceedings of the 12th international conference on Algorithms and data structures
The binary identification problem for weighted trees
Theoretical Computer Science
Hi-index | 0.00 |
Let us consider an ordered vector A[1 : n]. If the cost of testing each position is similar, then the standard binary search is the best strategy to search the vector. This is true in both average and worst case. However, if the costs are non-uniform, then the best strategy is not necessarily the standard binary search. The best algorithm to construct a strategy that minimizes the expected search cost runs in &Ogr;(n3) time and requires &Ogr;(n2) space. The same complexities hold for the best algorithm to construct a strategy that minimizes the worst case search cost.Here, we show how to efficiently construct search strategies that are at most at a constant factor from the optimal one. These constructions take linear time and use only linear space. For the problem of minimizing the expected search cost, we present an algorithm that requires &Ogr;(n) space and gives a (2 + ∈ + &Ogr;(1))-approximated solution in &Ogr;(n) time, for any fixed value of ∈ 0. On the other hand, for the problem of minimizing the worst case search cost, we describe an algorithm that requires &Ogr;(n) space and gives a (2 + ∈ + &Ogr;(1))- approximated solution in &Ogr;(n) time, for any fixed value of ∈ 0. These two problems arise when processing a query in a distributed text database indexed by a suffix array.