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 automata | Stirling numbers of the second kind |
Using Analytic combinatorics
Functional graph (see article) corresponding to a total map from (set ) 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 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 , 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 in-degree (garden-of-eden points) is, asymptotically . One can also show that with high probability a transition structure is not accessible.
We look at the set of -node transition structures whose nodes have in-degree at least , except, possibly the initial state (call the set ). 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 and . The number of this is, asymptotically,
where , and , are computable constants. Note that because , this number is much smaller than , the total number of transitions structures. This agrees with the previous argument that accessible structures are sparse. Also note that is the probability that a random map between and 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 .
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
What about the giant out-component? They don't talk about it !?