English

Fast M\"obius and Zeta Transforms

Discrete Mathematics 2022-11-28 v1

Abstract

M\"obius inversion of functions on partially ordered sets (posets) P\mathcal{P} is a classical tool in combinatorics. For finite posets it consists of two, mutually inverse, linear transformations called zeta and M\"obius transform, respectively. In this paper we provide novel fast algorithms for both that require O(nk)O(nk) time and space, where n=Pn = |\mathcal{P}| and kk is the width (length of longest antichain) of P\mathcal{P}, compared to O(n2)O(n^2) for a direct computation. Our approach assumes that P\mathcal{P} is given as directed acyclic graph (DAG) (E,P)(\mathcal{E}, \mathcal{P}). The algorithms are then constructed using a chain decomposition for a one time cost of O(E+Eredk)O(|\mathcal{E}| + |\mathcal{E}_\text{red}| k), where Ered\mathcal{E}_\text{red} is the number of edges in the DAG's transitive reduction. We show benchmarks with implementations of all algorithms including parallelized versions. The results show that our algorithms enable M\"obius inversion on posets with millions of nodes in seconds if the defining DAGs are sufficiently sparse.

Keywords

Cite

@article{arxiv.2211.13706,
  title  = {Fast M\"obius and Zeta Transforms},
  author = {Tommaso Pegolotti and Bastian Seifert and Markus Püschel},
  journal= {arXiv preprint arXiv:2211.13706},
  year   = {2022}
}

Comments

16 pages, 7 figures, submitted for review

R2 v1 2026-06-28T07:11:47.507Z