Random deterministic automata

guillefix 4th November 2016 at 2:43pm

Random automata, Deterministic finite automaton

Enumeration and Generation of Initially Connected Deterministic Finite Automata implemented in python FAdo library.

Initially connected means that, for each state q there exists a directed path from the distinguished start st ate to q . I think another name for an automaton or an state of one, with this property, is accessible.

Enumeration and random generation of accessible automataStirling numbers of the second kind

Random Deterministic Automata

Using Analytic combinatorics

Functional graph (see article) corresponding to a total map from [n][ n ] (set {1,2,3,...,n}\{1,2,3,...,n\}) to itself, consists of components, each a cycle of trees (a forest whose roots are connected by a cycle). Note that the nodes in the trees have edges pointing toward the root. This combinatoric structure emerges from the constraint that the out-degree is exactly 11 for all nodes in the functional graph.

As an example of applying the symbolic method, and singularity analysis of analytic combinatorics, they find the asymptotic value of the average number of cyclic points (points (nodes) belonging to a cycle), which is πn/2\sqrt{\pi n/2}, nn being the number of points..

See definitions of transition structure, automaton, accessible automaton, etc in article.

One can also show that the expected number of points with 00 in-degree (garden-of-eden points) is, asymptotically e2ne^{-2} n. One can also show that with high probability a transition structure is not accessible.

We look at the set of nn-node transition structures whose nodes have in-degree at least 11, except, possibly the initial state (call the set TnT_n'). This set has asymptotically the same cardinality as the set of accessible transition structures, up to a multiplicative constant. It's easy to show that there is a bijection between this set and the set of all surjections between [kn+1][kn+1] and [n][n]. The number of this is, asymptotically,

S(nk+1,n)αkβknnkn+1S(nk+1, n) \sim \alpha_k \beta_k^n n^{kn+1}

where αk>0\alpha_k >0, and βk(0,1)\beta_k \in (0,1), are computable constants. Note that because βk<1\beta_k <1, this number is much smaller than nnk+1n \cdot n^{k+1}, the total number of transitions structures. This agrees with the previous argument that accessible structures are sparse. Also note that αkβkn\alpha_k \beta_k^n is the probability that a random map between [kn+1][kn+1] and [n][n] is a surjection. Good showed this (see ref in article).

See more remarks in article.

A more relevant question may be the number of isomorphic classes of accessible automata; however, symmetries (just like in Feynman diagrams), make the counting difficult. However, for accessible automata, the counting is simplified, due to a certain bijection, and the number of elements per isomorphic class is n!n!.

More References on random deterministic automata

On the Probability of Being Synchronizable

An algorithm for road coloring

Graph structure of random automata

Diameter and Stationary Distribution of Random r-out Digraphs

The graph structure of a deterministic automaton chosen at random slides

The size of the largest strongly connected component of a random digraph with a given degree sequence

What about the giant out-component? They don't talk about it !?