Exact Counting and Sampling of Labeled Graphs of Bounded Treewidth with MSO Properties
Kuncheng Zou, Yuanhong Wang, Yi Chang, Yuyi Wang, Ondřej Kuželka
Abstract
How many graphs on labeled vertices have treewidth at most , and how can we sample such graphs uniformly at random? We devise algorithms for both tasks that run in polynomial time for every fixed . Efficient counting and sampling for this class had been listed as fully open. More generally, our algorithms count and sample graphs of treewidth at most satisfying any property expressible in monadic second-order logic with quantification over vertex and edge sets (). This provides an algorithmic counterpart to Courcelle's theorem for counting and generating graphs subject to logical constraints. The algorithms also support vertex colors and nonnegative rational vertex and edge weights determined by colors. They compute the exact total weight of all admissible colored graphs and sample each graph with probability proportional to its weight. Let comprise the treewidth bound, color set, and logical sentence, and let denote the encoding length of the weights. Counting uses arithmetic operations and bit operations, where is a computable function. Generating each sample requires bit operations in expectation.
Create a lesson
Related papers
An Exact Local Factor Two for Vertex Cover in Graphs Excluding a Minor
Shared title terminologycs.DSSaeed Amiri, Sebastian Siebertz, Wojciech Wawrzyniak
Deterministic Approximate Counting Beyond Bounded Degree
Shared title terminologycs.DSYitong Yin, Xinyuan Zhang
Exact Tightness for Single-Sample Max-Prob Prophet Secretary and the Two-Sided Game of Googol
Shared title terminologycs.DSDongchen Li
Counting Maximal Bicliques in Large Sparse Bipartite Graphs by Degeneracy-Anchored Enumeration
Shared title terminologycs.DSLu Chen, Chengfei Liu, Rui Zhou et al.
New stronger bounds for online coloring k-colorable graphs
Shared title terminologycs.DSXin Li, Yaqiao Li
MKC: Exact k-mer Counting into a Compact Cache-Line Cuckoo Index
Shared title terminologycs.DSKamila Szewczyk