Fast Practical Algorithms for the Boolean-Product-Witness-Matrix Problem

Given two 'n' X 'n' Boolean matrices A and B (i.e., each element of A and B is either 0 or 1), their Boolean Product Witness Matrix (BPWM)is an 'n' X 'n' integer matrix C with C(i,j) = some 'k' such that A(i,k) = B(k,j) = 1 and C(i,j) = 0 if no such 'k' exists. The best known algorithms to date for the BPWM problem have a worst-case time-complexity that is log(n) times the time required to multiply two 'n' X 'n' integer matrices. Currently, the best known algorithm for integer matrix multiplication is due to Coppersmith and Winograd and requires O(n ** 2.376) steps. In this paper, we describe a randomized algorithm for solving the BPWM problem with an expected time-complexity of O(log(n) * n ** 2) on mutually independent input matrices. This algorithm indirectly provides methods to find transitive closures of graphs and to solve the all-pairs-shortest-path problem for unweighted, undirected graphs with an expected run time of O(log(n) * n ** 2). Our algorithm is practical and simpler to implement than currently best known algorithms for this problem, which use
Coppersmith and Winograd's algorithm as a prime component. Although, instances of the BPWM problem can be constructed for which our algorithm does not terminate in O(log(n) * n ** 2) steps, we show that such
instances are extremely rare.

By: Anshul Gupta, Pankaj Rohatgi, Ramesh Agarwal

Published in: RC21224 in 1998

LIMITED DISTRIBUTION NOTICE:

This Research Report is available. This report has been submitted for publication outside of IBM and will probably be copyrighted if accepted for publication. It has been issued as a Research Report for early dissemination of its contents. In view of the transfer of copyright to the outside publisher, its distribution outside of IBM prior to publication should be limited to peer communications and specific requests. After outside publication, requests should be filled only by reprints or legally obtained copies of the article (e.g., payment of royalties). I have read and understand this notice and am a member of the scientific community outside or inside of IBM seeking a single copy only.

rc21224.ps

Questions about this service can be mailed to reports@us.ibm.com .