L6 - Finite State Automata Flashcards
How do you show an accept state on a state diagram?
A double circle
How do you show a start state on a state diagram?
Arrow pointing to the start state
How do you show a transition and transition condition on a state diagram?
A curved arrow between states; put the condition on the curved arrow
Is is required to have a start state or accept state?
No. Can have none.
What is the maximum number of
a) Start States
b) Accept states
a) One.
b) Unlimited.
State machines are what type of Automata?
Finite
What are the five elements of a finite automaton?
Q - a finite set of states
Σ - finite set called the alphabet, the elements of which are called symbols
δ - a function called the transition function
q - an element of Q called the start state
F - a subset of Q called the accept states
Why do we not hear about infinite automata?
‘uncountable’ states and transitions - impractical to consider
What makes a finite automata a non-deterministic finite automata (DFA)?
- one input can lead from a given state to more than one states
- a transition may occur without an input
- input may be empty
What makes a finite automata a deterministic finite automata (DFA)?
- one input will lead to one transition at most for any given state (one input cannot lead to two states)
- transitions only occur with input
- input may not be empty
What is a language, in terms of finite automata?
A set of input strings.
What makes a language a regular language?
If there exists a finite automaton that accepts the strings in the language, the language is regular.