Questions tagged [finite-state-machine]

For questions about finite state machine, which is a mathematical model of computation.

A finite-state machine (FSM) or finite-state automaton (FSA, plural: automata), finite automaton, or simply a state machine, is a mathematical model of computation. It is an abstract machine that can be in exactly one of a finite number of states at any given time. The FSM can change from one state to another in response to some external inputs; the change from one state to another is called a transition. An FSM is defined by a list of its states, its initial state, and the conditions for each transition. Finite state machines are of two types – deterministic finite state machines and non-deterministic finite state machines. A deterministic finite-state machine can be constructed equivalent to any non-deterministic one.

76 questions
1
vote
0 answers

Finite state machine which only accepts binary strings with an odd number of zeros

I want to create a finite state machine that takes strings with only 0 and 1 as input. The finite state machine shall only accept strings with an odd number of zeros and the sum of the numbers in the string should be divisible by 3 (but any other…
Tommy
  • 19
1
vote
1 answer

Non-deterministic finite automaton-transition function

When we define: $δ:(Q \timesΣ\to2^Q)$ $2^Q$ represents the numbers of transitions or the resulting position after the automaton get letter?
postFix
  • 257
0
votes
0 answers

Finite State Machines: Can a state diagram have more than one self-loop?

According to Schaum's Outlines, the state diagrams of Finite State Machines are labelled directed graphs. Now, it is entirely possible that the resultant state after transition returns to itself more than once for different inputs, but then you'd…
0
votes
0 answers

Are the following conversions from DFAs to GNFAs correct?

This machine (a) should accept all strings that start with a 1 and end with a 0. This machine (b) should accept all strings that contain three or more 1s. This machine (c) should accept all strings that contain 0101.
Ettore
  • 527