Counting Short Vector Pairs by Inner Product and Relations to the Permanent

07/28/2020
by   Andreas Björklund, et al.
0

Given as input two n-element sets 𝒜,ℬ⊆{0,1}^d with d=clog n≤(log n)^2/(loglog n)^4 and a target t∈{0,1,…,d}, we show how to count the number of pairs (x,y)∈𝒜×ℬ with integer inner product ⟨ x,y ⟩=t deterministically, in n^2/2^Ω(√(log nloglog n/(clog^2 c))) time. This demonstrates that one can solve this problem in deterministic subquadratic time almost up to log^2 n dimensions, nearly matching the dimension bound of a subquadratic randomized detection algorithm of Alman and Williams [FOCS 2015]. We also show how to modify their randomized algorithm to count the pairs w.h.p., to obtain a fast randomized algorithm. Our deterministic algorithm builds on a novel technique of reconstructing a function from sum-aggregates by prime residues, which can be seen as an additive analog of the Chinese Remainder Theorem. As our second contribution, we relate the fine-grained complexity of the task of counting of vector pairs by inner product to the task of computing a zero-one matrix permanent over the integers.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
11/05/2021

Hopcroft's Problem, Log-Star Shaving, 2D Fractional Cascading, and Decision Trees

We revisit Hopcroft's problem and related fundamental problems about geo...
research
07/16/2018

Fast Witness Counting

We study the witness-counting problem: given a set of vectors V in the d...
research
03/25/2023

Fredman's Trick Meets Dominance Product: Fine-Grained Complexity of Unweighted APSP, 3SUM Counting, and More

In this paper we carefully combine Fredman's trick [SICOMP'76] and Matou...
research
08/16/2022

Simple deterministic O(n log n) algorithm finding a solution of Erdős-Ginzburg-Ziv theorem

Erdős-Ginzburg-Ziv theorem is a famous theorem in additive number theory...
research
02/26/2023

Fast Attention Requires Bounded Entries

In modern machine learning, inner product attention computation is a fun...
research
09/24/2019

The space complexity of inner product filters

Motivated by the problem of filtering candidate pairs in inner product s...
research
02/20/2019

Counting basic-irreducible factors mod p^k in deterministic poly-time and p-adic applications

Finding an irreducible factor, of a polynomial f(x) modulo a prime p, is...

Please sign up or login with your details

Forgot password? Click here to reset