paper

Deterministic algorithms for skewed matrix products

arXiv:1209.4508

Abstract

Recently, Pagh presented a randomized approximation algorithm for the multiplication of real-valued matrices building upon work for detecting the most frequent items in data streams. We continue this line of research and present new {\em deterministic} matrix multiplication algorithms. Motivated by applications in data mining, we first consider the case of real-valued, nonnegative -by- input matrices and , and show how to obtain a deterministic approximation of the weights of individual entries, as well as the entrywise -norm, of the product . The algorithm is simple, space efficient and runs in one pass over the input matrices. For a user defined the algorithm runs in time and space and returns an approximation of the entries of within an additive factor of , where is the entrywise 1-norm of a matrix and is the time required to sort real numbers in linear space. Building upon a result by Berinde et al. we show that for skewed matrix products (a common situation in many real-life applications) the algorithm is more efficient and achieves better approximation guarantees than previously known randomized algorithms. When the input matrices are not restricted to nonnegative entries, we present a new deterministic group testing algorithm detecting nonzero entries in the matrix product with large absolute value. The algorithm is clearly outperformed by randomized matrix multiplication algorithms, but as a byproduct we obtain the first -time deterministic algorithm for matrix products with nonzero entries.