Designing Deterministic Polynomial-Space Algorithms by Color-Coding\n Multivariate Polynomials

Gregory Gutin, Felix Reidl, Magnus Wahlström, Meirav Zehavi · DOI

Abstract

In recent years, several powerful techniques have been developed to design randomized polynomial-space parameterized algorithms. In this paper, we introduce an enhancement of color coding to design deterministic polynomial-space parameterized algorithms. Our approach aims at reducing the number of random choices by exploiting the special structure of a solution. Using our approach, we derive a polynomial-space $O^*(3.86^k)$-time (exponential-space $O^*(3.41^k)$-time) algorithm for $k$-Internal Out-Branching, improving upon the previously fastest exponential-space $O^*(5.14^k)$-time algorithm for this problem. We also provide polynomial-space $O^*((2e)^{k+o(k)})$-time algorithms for $k$-Colorful Out-Branching on arc-colored digraphs and $k$-Colorful Perfect Matching on planar edge-colored graphs. To obtain our polynomial space algorithms, we show that $(n,k,\alpha k)$-splitters and perfect hash families can be enumerated one by one with polynomial delay.

Introduction

In the field of parameterized complexity, researchers seek algorithms that are efficient relative to a small parameter $k$ (such as the size of a solution), even when the underlying problem is NP-hard. Recently, "algebraic" techniques have led to incredibly fast randomized algorithms for these problems. However, these often rely on random coin flips to succeed.

The standard way to make these algorithms deterministic (derandomization) usually involves "perfect hash families." The catch is that most existing methods to construct or use these families require exponential space (memory), which is a significant bottleneck for large datasets. This paper bridges the gap by demonstrating how to design algorithms that are both deterministic and memory-efficient (polynomial space).

Methodology

The authors propose a four-step framework to derandomize algebraic algorithms without the typical memory explosion:

  1. Polynomial Identification: The problem is represented as a multivariate polynomial where a "witnessing monomial" (a specific term in the math) exists if and only if there is a solution.
  2. Coloring Guides: This is a key innovation. Instead of blindly coloring everything, the authors use problem-specific structural properties—such as a maximum matching in a graph—to "guide" the coloring, which significantly reduces the number of required colors.
  3. Color Coding & Derandomization: The approach utilizes $(n, k, \alpha k)$-splitters and perfect hash families. Crucially, the authors prove these families can be enumerated one-by-one with polynomial delay, meaning they do not have to store the whole family in memory at once.
  4. Coefficient Extraction: A "monomial sieving" technique based on inclusion-exclusion is used to check if the witnessing monomial actually exists in the polynomial.

To handle specific graph structures, the algorithms leverage the Matrix Tree Theorem for out-branchings and Pfaffian orientations for planar matchings.

Key Insights and Results

The most significant "aha moment" of this research is the proof that complex derandomization tools like splitters can be generated on-the-fly using only polynomial space. This allows the authors to avoid the memory bottleneck that plagued previous deterministic attempts. By finding a maximum matching first, the "Coloring Guide" significantly slims down the search space for the $k$-Internal Out-Branching problem.

The paper delivers several improved bounds for deterministic algorithms:

  • $k$-Internal Out-Branching: Achieved a running time of $O^*(3.86^k)$ in polynomial space. As shown in the comparison table, this is a massive improvement over the previous best exponential-space algorithm ($O^*(5.14^k)$).
  • $k$-Colorful Out-Branching: Designed a polynomial-space algorithm running in $O^*((2e)^{k+o(k)})$ time.
  • $k$-Colorful Perfect Matching: For planar graphs, the same $O^*((2e)^{k+o(k)})$ bound was achieved in polynomial space.

Limitations and Future Work

While the results are groundbreaking, some limitations remain. The technique for colorful matchings relies on Pfaffians, which are currently restricted to planar graphs. For general graphs, counting matchings is #P-hard, meaning there is no easy "plug-in" replacement for this method. Additionally, while the authors solved Perfect Matchings, the more general "Rainbow Matching" problem remains elusive for this specific algebraic approach.

Future research may explore the complexity of finding an out-branching that has $k$ more internal vertices than the size of a maximum matching, a challenge known as "parameterization above a guarantee."

Summary updated

Abstract

In recent years, several powerful techniques have been developed to design\n{\\em randomized} polynomial-space parameterized algorithms. In this paper, we\nintroduce an enhancement of color coding to design deterministic\npolynomial-space parameterized algorithms. Our approach aims at reducing the\nnumber of random choices by exploiting the special structure of a solution.\nUsing our approach, we derive the following deterministic algorithms (see\nIntroduction for problem definitions).\n 1. Polynomial-space $O^*(3.86^k)$-time (exponential-space $O^*(3.41^k)$-time)\nalgorithm for {\\sc $k$-Internal Out-Branching}, improving upon the previously\nfastest {\\em exponential-space} $O^*(5.14^k)$-time algorithm for this problem.\n 2. Polynomial-space $O^*((2e)^{k+o(k)})$-time (exponential-space\n$O^*(4.32^k)$-time) algorithm for {\\sc $k$-Colorful Out-Branching} on\narc-colored digraphs and {\\sc $k$-Colorful Perfect Matching} on planar\nedge-colored graphs.\n To obtain our polynomial space algorithms, we show that $(n,k,\\alpha\nk)$-splitters ($\\alpha\\ge 1$) and in particular $(n,k)$-perfect hash families\ncan be enumerated one by one with polynomial delay.\n
BibTeX
@misc{gutin2017designing,
  author = {Gregory Gutin and Felix Reidl and Magnus Wahlström and Meirav Zehavi},
  title = {{Designing Deterministic Polynomial-Space Algorithms by Color-Coding\textbackslash\{\}n Multivariate Polynomials}},
  year = {2017},
  eprint = {1706.03698},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1706.03698},
}
Figure