3 research outputs found

    On the Complexity of Searching in Trees: Average-case Minimization

    Full text link
    We focus on the average-case analysis: A function w : V -> Z+ is given which defines the likelihood for a node to be the one marked, and we want the strategy that minimizes the expected number of queries. Prior to this paper, very little was known about this natural question and the complexity of the problem had remained so far an open question. We close this question and prove that the above tree search problem is NP-complete even for the class of trees with diameter at most 4. This results in a complete characterization of the complexity of the problem with respect to the diameter size. In fact, for diameter not larger than 3 the problem can be shown to be polynomially solvable using a dynamic programming approach. In addition we prove that the problem is NP-complete even for the class of trees of maximum degree at most 16. To the best of our knowledge, the only known result in this direction is that the tree search problem is solvable in O(|V| log|V|) time for trees with degree at most 2 (paths). We match the above complexity results with a tight algorithmic analysis. We first show that a natural greedy algorithm attains a 2-approximation. Furthermore, for the bounded degree instances, we show that any optimal strategy (i.e., one that minimizes the expected number of queries) performs at most O(\Delta(T) (log |V| + log w(T))) queries in the worst case, where w(T) is the sum of the likelihoods of the nodes of T and \Delta(T) is the maximum degree of T. We combine this result with a non-trivial exponential time algorithm to provide an FPTAS for trees with bounded degree

    Approximation Strategies for Generalized Binary Search in Weighted Trees

    Get PDF
    International audienceWe consider the following generalization of the binary search problem. A search strategy is required to locate an unknown target node tt in a given tree TT. Upon querying a node vv of the tree, the strategy receives as a reply an indication of the connected component of T∖{v}T\setminus\{v\} containing the target tt. The cost of querying each node is given by a known non-negative weight function, and the considered objective is to minimize the total query cost for a worst-case choice of the target. Designing an optimal strategy for a weighted tree search instance is known to be strongly NP-hard, in contrast to the unweighted variant of the problem which can be solved optimally in linear time. Here, we show that weighted tree search admits a quasi-polynomial time approximation scheme: for any 0<Δ<10 < \varepsilon < 1, there exists a (1+Δ)(1+\varepsilon)-approximation strategy with a computation time of nO(log⁥n/Δ2)n^{O(\log n / \varepsilon^2)}. Thus, the problem is not APX-hard, unless NP⊆DTIME(nO(log⁥n))NP \subseteq DTIME(n^{O(\log n)}). By applying a generic reduction, we obtain as a corollary that the studied problem admits a polynomial-time O(log⁥n)O(\sqrt{\log n})-approximation. This improves previous O^(log⁥n)\hat O(\log n)-approximation approaches, where the O^\hat O-notation disregards O(polylog⁥log⁥n)O(\mathrm{poly}\log\log n)-factors
    corecore