Controlled non uniform random generation of decomposable structures
Abstract
Consider a class of decomposable combinatorial structures, using different types of atoms = \1,… ,||\. We address the random generation of such structures with respect to a size n and a targeted distribution in k of its distinguished atoms. We consider two variations on this problem. In the first alternative, the targeted distribution is given by k real numbers 1, …, k such that 0 < i < 1 for all i and 1+·s+k ≤ 1. We aim to generate random structures among the whole set of structures of a given size n, in such a way that the expected frequency of any distinguished atom i equals i. We address this problem by weighting the atoms with a k-tuple of real-valued weights, inducing a weighted distribution over the set of structures of size n. We first adapt the classical recursive random generation scheme into an algorithm taking n1+o(1)+mnn arithmetic operations to draw m structures from the -weighted distribution. Secondly, we address the analytical computation of weights such that the targeted frequencies are achieved asymptotically, i. e. for large values of n. We derive systems of functional equations whose resolution gives an explicit relationship between and 1, …, k. Lastly, we give an algorithm in k n4 for the inverse problem, i.e. computing the frequencies associated with a given k-tuple of weights, and an optimized version in k n2 in the case of context-free languages. This allows for a heuristic resolution of the weights/frequencies relationship suitable for complex specifications. In the second alternative, the targeted distribution is given by a k natural numbers n1, …, nk such that n1+·s+nk+r=n where r ≥ 0 is the number of undistinguished atoms. The structures must be generated uniformly among the set of structures of size n that contain exactly ni atoms i (1 ≤ i ≤ k). We give a r2Πi=1k ni2 +m n k n algorithm for generating m structures, which simplifies into a rΠi=1k ni +m n for regular specifications.
Turn this paper into a lesson
ArcXiv compiles a structured reading guide from this paper's metadata: plain-English importance, contributions, prerequisite concepts, which sections to read first, flashcards, and a quiz. Grounded in the abstract, never invented.