Multiplication of 0-1 matrices via clustering
Abstract
We study applications of clustering (in particular, the -center clustering problem) in the design of efficient and practical algorithms for computing an approximate and the exact arithmetic matrix product of two 0-1 rectangular matrices with clustered rows or columns, respectively. Our results in part can be regarded as an extension of the clustering-based approach to Boolean square matrix multiplication due to Arslan and Chidri (CSC 2011). First, we provide a simple and efficient deterministic algorithm for approximate matrix product of 0-1 matrices, where the additive error is proportional to the minimum maximum radius in an -center clustering of the rows of the first matrix or an -center clustering of the columns of the second matrix. Next, we use the approximation algorithm as a preprocessing after which a query asking for the exact value of an arbitrary entry in the product matrix can be answered in time proportional to the additive error. As a consequence, we obtain a simple deterministic algorithm for the exact matrix product of 0-1 matrices. We also present an improved simple deterministic algorithm for the exact product and in addition, faster analogous randomized algorithms for an approximate and the exact matrix products of 0-1 matrices based on randomized and -center clustering.
Keywords
Cite
@article{arxiv.2503.19631,
title = {Multiplication of 0-1 matrices via clustering},
author = {Jesper Jansson and Miroslaw Kowaluk and Andrzej Lingas and Mia Persson},
journal= {arXiv preprint arXiv:2503.19631},
year = {2025}
}
Comments
A preliminary version of this article appeared in Proceedings of Frontiers of Algorithmics - the 19th International Joint Conference (IJTCS-FAW~2025), Lecture Notes in Computer Science, Vol.~15828, pp.~92--102, Springer~Nature, 2025