How many FSMs are there where the machine has $n$ states, reads a binary symbol at each time-step, and may or may not output a symbol from an alphabet of size $a$ after each transition?
2026-03-26 01:16:39.1774487799
Bumbble Comm
On
Number of finite-state machines with $n$ states, output alphabet size $a$, and binary input
1.7k Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
2
There are 2 best solutions below
0
Bumbble Comm
On
Imagine a transition table with $n$ rows, and columns with pairs (new-state, write) given read 0, (new-state, write) given read 1.
There are $n^2a^2$ ways to make each row. There are $n$ rows. The total number of machines is thus $n^{n^{2}a^{2}}$. Add 1 to $a$ to account for an empty "no-write" character.
When I get enough reputation points I'll post an image of the transition table.
Related Questions in COMBINATORICS
- Using only the digits 2,3,9, how many six-digit numbers can be formed which are divisible by 6?
- The function $f(x)=$ ${b^mx^m}\over(1-bx)^{m+1}$ is a generating function of the sequence $\{a_n\}$. Find the coefficient of $x^n$
- Name of Theorem for Coloring of $\{1, \dots, n\}$
- Hard combinatorial identity: $\sum_{l=0}^p(-1)^l\binom{2l}{l}\binom{k}{p-l}\binom{2k+2l-2p}{k+l-p}^{-1}=4^p\binom{k-1}{p}\binom{2k}{k}^{-1}$
- Algebraic step including finite sum and binomial coefficient
- nth letter of lexicographically ordered substrings
- Count of possible money splits
- Covering vector space over finite field by subspaces
- A certain partition of 28
- Counting argument proof or inductive proof of $F_1 {n \choose1}+...+F_n {n \choose n} = F_{2n}$ where $F_i$ are Fibonacci
Related Questions in GRAPH-THEORY
- characterisation of $2$-connected graphs with no even cycles
- Explanation for the static degree sort algorithm of Deo et al.
- A certain partition of 28
- decomposing a graph in connected components
- Is it true that if a graph is bipartite iff it is class 1 (edge-coloring)?
- Fake induction, can't find flaw, every graph with zero edges is connected
- Triangle-free graph where every pair of nonadjacent vertices has exactly two common neighbors
- Inequality on degrees implies perfect matching
- Proving that no two teams in a tournament win same number of games
- Proving that we can divide a graph to two graphs which induced subgraph is connected on vertices of each one
Related Questions in AUTOMATA
- Exitstance of DPA of L = $\{ww^r\}$
- Automata defined by group presentations.
- How to prove convergence of a sequence of binary numbers
- A finite automaton that accepts at least three $a$s and at least two $b$s.
- Is my DFA correct?
- Intersection of two languages (Formal Languages and Automata Theory)
- Is there any universal algorithm converting grammar to Turing Machine?
- Build a Context-Free Grammar for a given language
- Prove that $B = B ^+$ iff $BB \subseteq B$
- Proving a Language is Regular via Automata
Related Questions in TURING-MACHINES
- Has the effort to confirm $\Sigma(5)$ and the search for new champions with $6$ states been stopped?
- Pop-up cards Turing complete?
- How does a cellular automaton "know" when to halt?
- Is the halting problem also undecideable for turing machines always writing a $1$ on the tape?
- Proof of "Extension" for Rice's Theorem
- Do we need enumeration to find the maximal number of steps a special Turing machine can make?
- Deciding wether a language is regular, in the arithmetic hierarchy
- Can a machine exist making more steps than the current record, which is no busy beaver?
- Can the halting problem for bounded Turing machines be efficiently decided?
- Can we efficiently determine the function $f(n,s)$?
Related Questions in FINITE-AUTOMATA
- Infinite strings and infinite theorems - Is there a theory on these stuffs?
- For any regular expression for a finite automata, how do you find the shortest word accepted?
- Converting NFA to DFA and then to regular expression.
- Divisibility problem using DFA
- Epsilon and phi in automata
- Did I find the right expression for the regular language for this FSA?
- Context free grammar to NFA
- Unable to construct Context-free Grammar from Pushdown Automaton $a^n b^m$
- CFG and Regularity of Two Language?
- Show that A/B is regular.
Trending Questions
- Induction on the number of equations
- How to convince a math teacher of this simple and obvious fact?
- Find $E[XY|Y+Z=1 ]$
- Refuting the Anti-Cantor Cranks
- What are imaginary numbers?
- Determine the adjoint of $\tilde Q(x)$ for $\tilde Q(x)u:=(Qu)(x)$ where $Q:U→L^2(Ω,ℝ^d$ is a Hilbert-Schmidt operator and $U$ is a Hilbert space
- Why does this innovative method of subtraction from a third grader always work?
- How do we know that the number $1$ is not equal to the number $-1$?
- What are the Implications of having VΩ as a model for a theory?
- Defining a Galois Field based on primitive element versus polynomial?
- Can't find the relationship between two columns of numbers. Please Help
- Is computer science a branch of mathematics?
- Is there a bijection of $\mathbb{R}^n$ with itself such that the forward map is connected but the inverse is not?
- Identification of a quadrilateral as a trapezoid, rectangle, or square
- Generator of inertia group in function field extension
Popular # Hahtags
second-order-logic
numerical-methods
puzzle
logic
probability
number-theory
winding-number
real-analysis
integration
calculus
complex-analysis
sequences-and-series
proof-writing
set-theory
functions
homotopy-theory
elementary-number-theory
ordinary-differential-equations
circles
derivatives
game-theory
definite-integrals
elementary-set-theory
limits
multivariable-calculus
geometry
algebraic-number-theory
proof-verification
partial-derivative
algebra-precalculus
Popular Questions
- What is the integral of 1/x?
- How many squares actually ARE in this picture? Is this a trick question with no right answer?
- Is a matrix multiplied with its transpose something special?
- What is the difference between independent and mutually exclusive events?
- Visually stunning math concepts which are easy to explain
- taylor series of $\ln(1+x)$?
- How to tell if a set of vectors spans a space?
- Calculus question taking derivative to find horizontal tangent line
- How to determine if a function is one-to-one?
- Determine if vectors are linearly independent
- What does it mean to have a determinant equal to zero?
- Is this Batman equation for real?
- How to find perpendicular vector to another vector?
- How to find mean and median from histogram
- How many sides does a circle have?
Without output
The state space has $n$ elements and the input space has $2$ elements. The state transition function maps the possible input-state pairs into the states. There are $2n$ such pairs. That is, we are talking about functions that map sets of $2n$ elements onto sets of $n$ elements. There are $$n^{2n}$$ such functions since any pair of input-state can be associated with any state.
With output
Assume that there is always an output. Then every state-input pair generates an output. Now, we have functions mapping sets of $2n$ elements onto sets of $a$ elements. There are $$a^{2n}$$ such functions. Together with the state transition functions we have $$n^{2n}a^{2n}$$ possibilities.
May or may not
I can interpret the "may or may not" clause in the following way. There are $a+1$ outputs, one of them is the "no output".
Appendix
Why do we have $2n$ possible pairs of inputs and states when we have $n$ states and $2$ inputs?
For $n=1$ we have $(0,1)$ and $(1,1)$, that is $2\times 1=2n$ possible pairs of inputs and states. Assume, that for all $k \le n$ we have $2k$ such elements of the range of the state transition function. Let's see how many pairs we have if the number of states is $n+1$. For the elements of the form $(i,k), k\le n, i=0,1$ we will have to add $(i,n+1), i=0,1$, that is two more pairs. $2n+2=2(n+1)$. By the principle of mathematical induction, it has been proved that for all $n$ the number of pairs is $2n$.
I hope that it it does not need any further argumentation that the number of possible state transition functions is $n^{2n}$.
Example
Let the set of states be $\{\spadesuit, \heartsuit,\diamondsuit, \clubsuit\}$ and let the set of inputs be $\{0,1\}$. The set of possible pairs of inputs and states is $$\{(0,\spadesuit),(0,\heartsuit),(0,\diamondsuit),(0,\clubsuit),(1,\spadesuit),(1,\heartsuit),(1,\diamondsuit),(1,\clubsuit)\}.$$
Every such pair may trigger $4$ new states. For example
$$(0,\spadesuit)\rightarrow\spadesuit, (0,\spadesuit)\rightarrow\heartsuit, (0,\spadesuit)\rightarrow\diamondsuit,(0,\spadesuit)\rightarrow\clubsuit.$$
As a total, we have $4^8=n^{2n}$ distinct state transition functions.