Search arXiv⌕ Search

arXiv · 2612.02661

Entropic sampling of exact-size context-free trees in linear time

Abstract

We sample a uniform object of size $n$ from a context-free class in expected linear time, using H+o(H) random bits in expectation, where H is the entropy of the target distribution: the sampler is exact, and optimal both in time and, to first order, in random bits. Equivalently, we sample multitype Galton--Watson trees conditioned on their size. The statement holds for every well-founded specification, for the sizes in the principal residue classes, to which every size reduces, and whenever the entropy grows linearly. Our guiding principle is to run every rejection on the profile of the object, a summary that carries only polylogarithmically many bits, and to build the object once, at the end, without rejection, with our entropic, linear-time sampler of words with prescribed letter counts. For a single critical component, this turns Sportiello's linear-time algorithm into an entropic one: cut into pieces, a tree is the excursion of a random walk, whose first passage we sample exactly without writing the walk, by Poisson batches and hypergeometric splits. With several critical components, the size may hide in several places. We classify where it can go (forests of nonlinear components, or trees of linear components with a polar singularity), mark one place at random, impose the remaining size on it, draw everything else freely, and remove the bias of the mark by a single coin. All the rejections happen in a profile phase of polylogarithmic expected cost.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Olivier Bodini, Francis Durand. 2026-12-01. Entropic sampling of exact-size context-free trees in linear time. https://searcharxiv.org/abs/2612.02661

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite Search arXiv by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

On isomorphism testing of strongly regular direction graphs

Let $\mathbb{F}$ be a finite field of order $q$. For $D\subseteq\mathrm{PG}(1,\mathbb{F})$, the direction graph $X(\mathbb{F},D)$ has vertex set $\mathbb{F}^2$, with two distinct vertices adjacent if and only if the line joining them in $\mathrm{AG}(2,\mathbb{F})$ has direction in $D$. We identify a class containing almost all direction graphs as $q\to\infty$ through prime powers. Every isomorphism from a graph in this class to any direction graph over the same field belongs to $\mathrm{AΓL}(2,\mathbb{F})$. This yields an isomorphism test running in time polynomial in $q$, with the field and direction sets given explicitly. We also prove that isomorphism testing takes polynomial time whenever the degree of $\mathbb{F}$ over its prime subfield is bounded. Finally, it is shown that almost all direction graphs have no automorphisms other than translations and nonzero scalar multiplications.

cs.DM↗

Entanglement from Expansion: Deterministic Graphs of Large Rank-Width

We give a degree-five $n$-vertex graph family with rank-width at least $n/15$. This family yields deterministically constructible graph states of linear entanglement width preparable in at most six CZ layers under all-to-all connectivity. We also prove that the $k$-dimensional hypercube has rank-width $Θ(2^k/\sqrt{k})$, the corresponding states providing better entanglement width values for NISQ-accessible numbers of qubits. Our bounds use an expansion-to-rank-width transfer, and a stronger matching construction for Cartesian products.

cs.DM↗

Bi-sequence Degree Realization with a Minimum Dominating Set

The input to the Bi-sequence Degree Realization problem is a pair $a=(a_1, \ldots, a_n)$ and $b = (b_1, \ldots, b_m)$ of two integer sequences (or a bi-sequence), and the goal is to find a bipartite graph $G =(V,W,E)$, such that the degree sequences of $V$ and $W$ are $a$ and $b$, respectively, or to decide that such a realization does not exist. There are well-known polynomial time algorithms for this problem, and there exists a characterization, based on a set of $O(n)$ inequalities that can be used to determine whether a solution exists for a given bi-sequence. A bi-sequence $(a,b)$ may have several realizations, and some of them may be preferable to others with respect to some measure. In this paper, focusing on the measure of dominating set size, we study the problem of Bi-sequence Degree Realization with respect to the Min Dominating Set problem, where the goal is to compute a realization of the input bi-sequence $(a,b)$ with the smallest possible dominating set among all the realizations of $(a,b)$. Our first contribution is a polynomial-time realization algorithm for Bi-sequence Degree Realization with respect to Min Dominating Set. We also provide a characterization for the existence of a realization with a dominating set of size $γ$ consisting of $O(nm(n+m)γ)$ inequalities.

cs.DM↗