English

Fast Witness Counting

Computational Complexity 2018-07-17 v1 Discrete Mathematics

Abstract

We study the witness-counting problem: given a set of vectors VV in the dd-dimensional vector space over F2\mathbb{F}_2, a target vector tt, and an integer kk, count all ways to sum-up exactly kk different vectors from VV to reach tt. The problem is well-known in coding theory and received considerable attention in complexity theory. Recently, it appeared in the context of hardware monitoring. Our contribution is an algorithm for witness counting that is optimal in the sense of fine-grained complexity. It runs in time O(2d)\mathcal{O}^*(2^d) with only a logarithmic dependence on m=Vm=|V|. The algorithm makes use of the Walsh-Hadamard transform to compute convolutions over F2d\mathbb{F}_2^d. The transform, however, overcounts the solutions. Inspired by the inclusion-exclusion principle, we introduce correction terms. The correction leads to a recurrence that we show how to solve efficiently. The correction terms are obtained from equivalence relations over F2d\mathbb{F}_2^d. We complement our upper bound with two lower bounds on the problem. The first relies on #ETH\# ETH and prohibits an 2o(d)2^{o(d)}-time algorithm. The second bound states the non-existence of a polynomial kernel for the decision version of the problem.

Keywords

Cite

@article{arxiv.1807.05777,
  title  = {Fast Witness Counting},
  author = {Peter Chini and Rehab Massoud and Roland Meyer and Prakash Saivasan},
  journal= {arXiv preprint arXiv:1807.05777},
  year   = {2018}
}
R2 v1 2026-06-23T03:02:28.108Z