Skip to main content
QUICK REVIEW

[Paper Review] Reconstructing Strings from Substrings: Optimal Randomized and Average-Case Algorithms

Kazuo Iwama, Junichi Teruyama|arXiv (Cornell University)|Aug 2, 2018
Algorithms and Data CompressionComputer Science9 references4 citations
TL;DR

This paper presents two optimal algorithms for reconstructing a binary string of known length n from substring queries: a randomized algorithm achieving n + O(1) queries with high probability, and an average-case deterministic algorithm with the same query complexity. Both overcome the longstanding O(log n) gap in prior work by exploiting probabilistic properties of substring occurrences and adaptive seed extension strategies, achieving optimality up to an additive constant.

ABSTRACT

The problem called "String reconstruction from substrings" is a mathematical model of sequencing by hybridization that plays an important role in DNA sequencing. In this problem, we are given a blackbox oracle holding an unknown string ${\mathcal X}$ and are required to obtain (reconstruct) ${\mathcal X}$ through "substring queries" $Q(S)$. $Q(S)$ is given to the oracle with a string $S$ and the answer of the oracle is Yes if ${\mathcal X}$ includes $S$ as a substring and No otherwise. Our goal is to minimize the number of queries for the reconstruction. In this paper, we deal with only binary strings for ${\mathcal X}$ whose length $n$ is given in advance by using a sequence of good $S$'s. In 1995, Skiena and Sundaram first studied this problem and obtained an algorithm whose query complexity is $n+O(\log n)$. Its information theoretic lower bound is $n$, and they posed an obvious open question; if we can remove the $O(\log n)$ additive term. No progress has been made until now. This paper gives two partially positive answers to this open question. One is a randomized algorithm whose query complexity is $n+O(1)$ with high probability and the other is an average-case algorithm also having a query complexity of $n+O(1)$ on average. The $n$ lower bound is still true for both cases, and hence they are optimal up to an additive constant.

Motivation & Objective

  • To close the O(log n) gap in query complexity for string reconstruction from substring queries.
  • To develop a randomized algorithm that achieves n + O(1) queries with high probability.
  • To design an average-case deterministic algorithm with n + O(1) query complexity.
  • To prove optimality of both algorithms up to an additive constant by matching the information-theoretic lower bound of n.
  • To leverage probabilistic substring frequency properties in binary strings to reduce query overhead.

Proposed method

  • Uses a randomized strategy to sample substrings of length ≈ log n to identify both substrings and non-substrings with high probability.
  • Employs a 'double seed' technique: first identifies the longest run of 0s (first seed), then searches for a second, longer seed to reduce query overhead.
  • Applies a 'TwoExtension' procedure that extends substrings in both directions using probabilistic sampling and adaptive query selection.
  • Introduces a failure-probability bounded bookkeeping system using Chernoff bounds to ensure high-probability correctness.
  • Adapts the Skiena-Sundaram (SkSu) algorithm by replacing binary search on the longest 0-run with a randomized seed-finding mechanism.
  • Uses a hybrid approach: switches to a deterministic exception path when the randomized phase fails, ensuring correctness with bounded error.

Experimental results

Research questions

  • RQ1Can the O(log n) additive term in the query complexity of string reconstruction be eliminated?
  • RQ2Is there a randomized algorithm that achieves n + O(1) queries with high probability for binary string reconstruction?
  • RQ3Can a deterministic average-case algorithm achieve n + O(1) query complexity?
  • RQ4How can probabilistic properties of substring frequencies in random binary strings be exploited to reduce query count?
  • RQ5Can the algorithm be made robust to non-random strings while maintaining near-optimal query complexity?

Key findings

  • The randomized algorithm achieves n + O(1) query complexity with failure probability at most δ, specifically n + 213 logₑ(3/δ) + 1 queries.
  • The average-case deterministic algorithm spends at most n + 6 queries on average, achieving n + O(1) performance.
  • Both algorithms are optimal up to an additive constant, matching the information-theoretic lower bound of n queries.
  • The failure probability of the randomized algorithm is bounded by δ, with a constant term of 213 logₑ(3/δ) that depends on the desired confidence level.
  • The use of double seeds and probabilistic sampling allows the algorithm to save up to log n queries compared to the SkSu approach.
  • The bookkeeping and failure probability analysis rely on Chernoff bounds to ensure high-probability correctness across all algorithmic phases.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.