English

Twin-width V: linear minors, modular counting, and matrix multiplication

Data Structures and Algorithms 2022-09-27 v1 Discrete Mathematics Logic in Computer Science Combinatorics

Abstract

We continue developing the theory around the twin-width of totally ordered binary structures, initiated in the previous paper of the series. We first introduce the notion of parity and linear minors of a matrix, which consists of iteratively replacing consecutive rows or consecutive columns with a linear combination of them. We show that a matrix class has bounded twin-width if and only if its linear-minor closure does not contain all matrices. We observe that the fixed-parameter tractable algorithm for first-order model checking on structures given with an O(1)O(1)-sequence (certificate of bounded twin-width) and the fact that first-order transductions of bounded twin-width classes have bounded twin-width, both established in Twin-width I, extend to first-order logic with modular counting quantifiers. We make explicit a win-win argument obtained as a by-product of Twin-width IV, and somewhat similar to bidimensionality, that we call rank-bidimensionality. Armed with the above-mentioned extension to modular counting, we show that the twin-width of the product of two conformal matrices A,BA, B over a finite field is bounded by a function of the twin-width of AA, of BB, and of the size of the field. Furthermore, if AA and BB are n×nn \times n matrices of twin-width dd over Fq\mathbb F_q, we show that ABAB can be computed in time Od,q(n2logn)O_{d,q}(n^2 \log n). We finally present an ad hoc algorithm to efficiently multiply two matrices of bounded twin-width, with a single-exponential dependence in the twin-width bound: If the inputs are given in a compact tree-like form, called twin-decomposition (of width dd), then two n×nn \times n matrices A,BA, B over F2\mathbb F_2, a twin-decomposition of ABAB with width 2d+o(d)2^{d+o(d)} can be computed in time 4d+o(d)n4^{d+o(d)}n (resp. 4d+o(d)n1+ε4^{d+o(d)}n^{1+\varepsilon}), and entries queried in doubly-logarithmic (resp. constant) time.

Keywords

Cite

@article{arxiv.2209.12023,
  title  = {Twin-width V: linear minors, modular counting, and matrix multiplication},
  author = {Édouard Bonnet and Ugo Giocanti and Patrice Ossona de Mendez and Stéphan Thomassé},
  journal= {arXiv preprint arXiv:2209.12023},
  year   = {2022}
}

Comments

45 pages, 9 figures

R2 v1 2026-06-28T02:01:21.628Z