Binary Search in Graphs

Ehsan Emamjomeh-Zadeh, David KempearXiv 2015 · OpenReview

TL;DR

This paper tackles the problem of finding a hidden target vertex in a graph by adaptively querying vertices. They provide an optimal algorithm for the noise-free case (logarithmic queries) and a near-optimal one for the noisy case, while also establishing surprising hardness results for variations of the problem.

What Problem Does This Paper Address?

Imagine you're trying to find a specific location (the "target vertex") on a map (a "graph"). You can ask questions about locations you visit. When you ask about a location "q", you either learn it's the target, or you get a hint: an edge connected to "q" that lies on a shortest path to the target. This is a generalization of binary search. The twist? Your hints might be wrong! In a "noisy" scenario, each hint is correct with probability p (greater than 1/2) and incorrect (and potentially misleading) with probability 1-p. The paper aims to find efficient algorithms for this search problem in various graph settings and also explores how hard it is to determine if a target can be found within a limited number of queries.

Methods

For the noise-free case ($p=1$), the authors adapt a "1-median" strategy. They maintain a set of potential target locations and, in each step, query a vertex that minimizes the sum of distances to all remaining potential targets. This effectively prunes the search space efficiently.

In the noisy case ($p < 1$), they employ a more sophisticated approach using a "multiplicative weights" algorithm. This algorithm iteratively updates "weights" (representing likelihoods) for each vertex. When a query is made, weights are adjusted based on the response: correct responses boost the likelihood of relevant vertices, while incorrect ones decrease it. This process is repeated in phases to narrow down the possibilities until the target is identified with high probability.

For hardness results, they use reductions from known computationally hard problems like the Exponential Time Hypothesis (ETH) and the Strong Exponential Time Hypothesis (SETH), as well as the Quantified Boolean Formulas (QBF) problem, to show that certain decision problems related to target search are computationally intractable.

Datasets

Not discussed in the paper.

Key Insights and Ideas

  • Binary Search in Graphs is Tricky: The core idea is that extending binary search to graphs, especially with noisy information, is far from trivial. The structure of the graph significantly impacts the search strategy and its efficiency.
  • The Power of Weighted Medians: For the noise-free case, the 1-median strategy is surprisingly effective, leading to a logarithmic query bound. This highlights how geometric properties within the graph can be leveraged.
  • Multiplicative Weights for Noise Resilience: The paper shows that multiplicative weights, a technique often used in online learning and game theory, is a powerful tool for handling noisy information in search problems. It allows for robust estimation of target likelihoods.
  • Hardness Beyond NP: The paper reveals that even for the simple noise-free case, determining if a target can be found within a fixed number of queries is surprisingly hard, requiring sub-exponential time unless ETH/SETH are false. This suggests that finding optimal search strategies in general graphs is computationally challenging.
  • Directed Graphs and Non-Uniform Costs are Tough: The problem becomes PSPACE-complete for directed graphs or when vertices have different query costs, indicating a significant jump in complexity.

Key Results

  • Noise-Free Case ($p=1$): An adaptive algorithm finds the target in any connected undirected graph using at most $\log_2 n$ queries, which is proven to be tight. This implies a quasipolynomial-time algorithm for the decision problem.
  • Noisy Case ($p > 1/2$): An algorithm finds the target with probability $1-\delta$ using an expected number of queries that is information-theoretically optimal up to lower-order terms: $(1 - \delta)\frac{\log_2 n}{1 - H(p)} + o(\log n) + O(\log^2 (1/\delta))$, where $H(p)$ is the entropy.
  • Hardness Results:
    • For $p=1$, the decision problem of finding a target within $K$ queries is not solvable in $m^{o(\log n)}$ time unless ETH is false, and not in $O(m^{(1-\epsilon)}\log n)$ time unless SETH is false.
  • For directed graphs or non-uniform query costs, the problem is PSPACE-complete.
  • For semi-adaptive queries (r queries per round for k rounds), the problem is in $\Sigma_{2k-1}$ and hard for $\Sigma_{2k-5}$.

Limitations and Future Work

  • Approximation vs. Exact Strategy: The authors pose the question of whether finding an approximately optimal strategy can be done in polynomial time, which is left open.
  • Directed Graphs Gap: For directed graphs that are "almost undirected," there's a gap between the upper and lower bounds on query complexity. The authors conjecture that the lower bound might be asymptotically tight.
  • Undirected Graphs NP-Completeness: It's an open question whether the decision problem for undirected graphs is in NP or co-NP.
  • Semi-Adaptive Hardness: The gap between the upper bound ($\Sigma_{2k-1}$) and hardness ($\Sigma_{2k-5}$) for semi-adaptive queries is also noted.
  • Infinite Metric Spaces: The paper suggests generalizing the problem to infinite metric spaces, which is a broad and open area.
  • Other Generalizations: The authors mention other interesting directions like querying approximate medians, searching for multiple targets, and handling approximate shortest paths.

Summary updated

Abstract

We consider the following natural generalization of Binary Search: in a given undirected, positively weighted graph, one vertex is a target. The algorithm's task is to identify the target by adaptively querying vertices. In response to querying a node $q$, the algorithm learns either that $q$ is the target, or is given an edge out of $q$ that lies on a shortest path from $q$ to the target. We study this problem in a general noisy model in which each query independently receives a correct answer with probability $p > \frac{1}{2}$ (a known constant), and an (adversarial) incorrect one with probability $1-p$. Our main positive result is that when $p = 1$ (i.e., all answers are correct), $\log_2 n$ queries are always sufficient. For general $p$, we give an (almost information-theoretically optimal) algorithm that uses, in expectation, no more than $(1 - \delta)\frac{\log_2 n}{1 - H(p)} + o(\log n) + O(\log^2 (1/\delta))$ queries, and identifies the target correctly with probability at leas $1-\delta$. Here, $H(p) = -(p \log p + (1-p) \log(1-p))$ denotes the entropy. The first bound is achieved by the algorithm that iteratively queries a 1-median of the nodes not ruled out yet; the second bound by careful repeated invocations of a multiplicative weights algorithm. Even for $p = 1$, we show several hardness results for the problem of determining whether a target can be found using $K$ queries. Our upper bound of $\log_2 n$ implies a quasipolynomial-time algorithm for undirected connected graphs; we show that this is best-possible under the Strong Exponential Time Hypothesis (SETH). Furthermore, for directed graphs, or for undirected graphs with non-uniform node querying costs, the problem is PSPACE-complete. For a semi-adaptive version, in which one may query $r$ nodes each in $k$ rounds, we show membership in $\Sigma_{2k-1}$ in the polynomial hierarchy, and hardness for $\Sigma_{2k-5}$.
BibTeX
@misc{emamjomehzadeh2015binary,
  author = {Ehsan Emamjomeh-Zadeh and David Kempe},
  title = {{Binary Search in Graphs}},
  year = {2015},
  eprint = {1503.00805},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1503.00805},
}

Loading related content...

Figure