Abstract
For a Boolean matrix D, let r D be the minimum number of rectangles sufficient to cover exactly the rectilinear region formed by the 1-entries in D. Next, let m D be the minimum of the number of 0-entries and the number of 1-entries inD.
Suppose that the rectilinear regions formed by the 1-entries in two n*n Boolean matrices A and B totally with q edges are given. We show that in time Õ(q + minr ArB, n(n + rA),n(n) + rB))1 one can construct a data structure which for any entry of the Boolean product of A and B reports whether or not it is equal to 1, and if so, reports also the so called witness of the entry, in time O(log q). Asa corollary, we infer that if the matrices A and B are given as input, their product and the witnesses of the product can be computed in time O(n (n+minr a,rb)) . This implies in particular that the product of A and B and its witnesses can be computed in time O(n(n + minm A, mb)).
In contrast to the known sub-cubic algorithms for Boolean matrix multiplication based on arithmetic 0 — 1-matrix multiplication, our algorithms do not involve large hidden constants in their running time and are easy to implement.
Research supported in part by TFR grant 221-99-344.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
A.V. Aho, J.E. Hopcroft and J.D. Ullman. The Design and Analysis of Computer Algorithms (Addison-Wesley, Reading, Massachusetts, 1974).
N. Alon and M. Naor. Derandomization, Witnesses for Boolean Matrix Multiplication and Construction of Perfect hash functions. Algorithmica 16, pp. 434–449, 1996.
V.L. Arlazarov, E.A. Dinic, M.A. Konrod and L.A. Faradzev. On economical construction of the transitive closure of a directed graph. Doklady Acad. Nauk SSSR, 194, pp. 487–488, 1970 (in Russian).
J. Basch, S. Khanna and R. Motwani. On Diameter Verification and Boolean Matrix Multiplication. Technical Report, Standford University CS department, 1995.
P. Berman and B. Dasgupta. Approximating Rectilinear Polygon Cover Problems. Algorithmica 17(4), 1997, pp. 331–356.
A. Björklund. Fast Multiplication of Low Rank Matrices. Unpublished manuscript, Lund University, 2002.
A. Björklund and A. Lingas. Fast Boolean matrix multiplication for highly clustered data. Proc. 7th International Workshop on Algorithms and Data Structures (WADS 2001), Lecture Notes in Computer Science, Springer Verlag.
P.J. Cameron. Combinatorics. Cambridge University Press 1994.
D. Coppersmith and S. Winograd. Matrix Multiplication via Arithmetic Progressions. J. of Symbolic Computation 9 (1990), pp. 251–280.
H. Edelsbrunner and H. Maurer. On the intersection of orthogonal objects. IPL vol. 13 (1981), pp. 177–181.
D.S. Franzblau. Performance Guarantees on a Sweep Line Heuristic for Covering Rectilinear Polygons with Rectangles. SIAM J. Discrete Math., Vol. 2,3, 1989, pp. 307–321.
Z. Galil and O. Margalit. Witnesses for Boolean Matrix Multiplication and Shortest Paths. Journal of Complexity, pp. 417–426, 1993.
K. Mehlhorn. Data Structures and Algorithms 3: Multi-dimensional Searching and Computational Geometry. EATCS Monographs on Theoretical Computer Science, Springer Verlag, Berlin, 1984.
K. Mehlhorn and Z. Galil. Monotone switching circuits and Boolean matrix product. Computing 16(1–2), pp. 99–111, 1976.
M.H. Overmars. Efficient Data Structures for Range Searching on a Grid. J. Algorithms, 9(2), pages 254–275, 1988.
M.S. Paterson. Complexity of monotone networks for Boolean matrix product. Theoretical Computer Science 1(1), pp. 13–20, 1975.
C.P. Schnorr and C.R. Subramanian. Almost Optimal (on the average) Combinatorial Algorithms for Boolean Matrix Product Witnesses, Computing the Diameter. Randomization and Approximation Techniques in Computer Science. Second International Workshop, RAN-DOM’98, Lecture Notes in Computer Science 1518, pp. 218–231.
R. Seidel. On the all-pairs-shortest-path problem in unweighted undirected graphs. Journal of Computer and System Sciences, 51, pp. 400–403, 1995.
V Strassen. Gaussian elimination is not optimal. Numerische Mathematik 13, pp. 354–356, 1969.
U. Zwick. Exact and Approximate Distances in Graphs — A Survey. Proc. 9th Annual European Symposium on Algorithms (ESA 2001), Lecture Notes in Computer Science, Springer Verlag.
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2002 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Lingas, A. (2002). A Geometric Approach to Boolean Matrix Multiplication. In: Bose, P., Morin, P. (eds) Algorithms and Computation. ISAAC 2002. Lecture Notes in Computer Science, vol 2518. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-36136-7_44
Download citation
DOI: https://doi.org/10.1007/3-540-36136-7_44
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-00142-3
Online ISBN: 978-3-540-36136-7
eBook Packages: Springer Book Archive