Dynamic data structures for twin-ordered matrices
Bartłomiej Bosek, Jadwiga Czyżewska, Evangelos Kipouridis, Wojciech Nadara, Michał Pilipczuk, Karol Węgrzycki, Anna Zych-Pawlewicz
TL;DR
This work addresses dynamic maintenance of $d$-twin-ordered binary matrices under single-entry updates while preserving compact storage. It introduces a canonical slab-based representation and leverages adhesive segment sets and Chan's 2D orthogonal point location to support fast queries and updates. The main contribution is a dynamic data structure that stores the matrix in $O_d(n)$ space and supports Init$(n,\mathcal{K})$, $\mathtt{QueryBit}(i,j)$, and $\mathtt{Update}(i,j)$ in $O(\log \log n)$ expected worst-case time, with an amortized variant and a de-amortized variant achieving worst-case bounds. This approach generalizes static representations of $d$-twin-ordered matrices to the dynamic setting, enabling efficient updates via periodic recomputation of a canonical slab decomposition and providing practical data-structure tools for twin-width-related matrix problems.
Abstract
We present a dynamic data structure for representing binary $n\times n$ matrices that are $d$-twin-ordered, for a~fixed parameter $d$. Our structure supports cell queries and single-cell updates both in $\Oh(\log \log n)$ expected worst case time, while using $\Oh_d(n)$ memory; here, the $\Oh_d(\cdot)$ notation
