Fast Computation on Semirings Isomorphic to (×, ) on R+

Abstract

Important problems across multiple disciplines involve computations on the semiring (×, ) (or its equivalents, the negated version (×, )), the log-transformed version (+, ), or the negated log-transformed version (+, )): max-convolution, all-pairs shortest paths in a weighted graph, and finding the largest k values in xi+yj for two lists x and y. However, fast algorithms such as those enabling FFT convolution, sub-cubic matrix multiplication, etc., require inverse operations, and thus cannot be computed on semirings. This manuscript generalizes recent advances on max-convolution: in this approach a small family of p-norm rings are used to efficiently approximate results on a nonnegative semiring. The general approach can be used to easily compute sub-cubic estimates of the all-pairs shortest paths in a graph with nonnegative edge weights and sub-quadratic estimates of the top k values in xi+yj when x and y are nonnegative. These methods are fast in practice and can benefit from coarse-grained parallelization.

0

Turn this paper into a lesson

ArcXiv compiles a structured reading guide from this paper's metadata: plain-English importance, contributions, prerequisite concepts, which sections to read first, flashcards, and a quiz. Grounded in the abstract, never invented.

Discussion (0)

Sign in to join the discussion.

Loading comments…