All DFA's with a given alphabet and a given set of states

Number of DFA's_1.gif

How many are they?

A DFA's transition function δ is of  type

Number of DFA's_2.gif

where Q is the state set, and Number of DFA's_3.gif is the tape alphabet.

Thus δ has Number of DFA's_4.gif different pairs Number of DFA's_5.gif of inputs.

Number of DFA's_6.gif

Why?  Below follows an explanation.
δ is uniquely characterized by the choice of outputs in δ:s input-output table.

Number of DFA's_7.gif

So the number of transition functions is the same as the number of such rows of outputs.
Well, how many different rows are there?

Let’s see ….

Such a row contains Number of DFA's_8.gif cells  – one cell for every input pair Number of DFA's_9.gif.

As the outputs are chosen from Q, there are {Q} ways to fill each cell.

Considering a whole row, cell by cell, there must be Number of DFA's_10.gif different fillings. This explains (2). Now we know how many ways there are to design a transition function δ.

To construct a DFA with a certain transition function δ, let us always denote the initial state by 1, and other states by greater numbers. All we have to do to get a complete description of such a DFA is to decide which states should constitute the set of final states. As every subset of Q is a potential choice for this, and there are Number of DFA's_11.gif different subsets of Q, the number of possible choices for the set of final states is Number of DFA's_12.gif.

It follows that the total number of DFA's is

Number of DFA's_13.gif

Number of DFA's_14.gif

Spikey Created with Wolfram Mathematica 8.0