Theory of Automata: Ntroduction
Theory of Automata: Ntroduction
INTRODUCTION
• The term "Automata" is derived from the Greek word "αὐτόματα" which
means "self-acting“.
• A moving mechanical device made in imitation of a human being.
What is AutomataTheory?
Recursively-
enumerable
Context
sensitive
Context free
Regular DFA
The Central Concepts of Automata Theory?
Alphabet
An alphabet is a finite, non-empty set of symbols
• We use the symbol ∑ (sigma) to denote an alphabet
• Examples:
• Binary: ∑ = {0,1}
• All lower case letters: ∑ = {a,b,c,..z}
• Alphanumeric: ∑ = {a-z, A-Z, 0-9}
• DNA molecule letters: ∑ = {a,c,g,t}
• …
Strings
A string or word is a finite sequence of symbols chosen from ∑
• Empty string is (or “epsilon”)
• Length of a string w, denoted by “|w|”, is equal to the number of (non- ) characters in the
string
• E.g., x = 010100 |x| = 6
• x = 01 0 1 00 |x| = ?
Let ∑ be an alphabet.
• ∑* = ∑0 U ∑1 U ∑2 U …
• ∑+ = ∑1 U ∑2 U ∑3 U …
Languages
L is a said to be a language over alphabet ∑, only if L ∑*
this is because ∑* is the set of all strings (of all possible length including 0) over the given
alphabet ∑
Examples:
1. Let L be the language of all strings consisting of n 0’s followed by
n 1’s: L = {, 01, 0011, 000111,…}
2. Let L be the language of all strings of with equal number of 0’s
and 1’s: L = {, 01, 10, 0011, 1100, 0101, 1010, 1001,…}
Example:
Let w = 100011
Q) Is w the language of strings with equal number of 0s and 1s?
Finite Automata
• Finite automata are finite collections of states with transition rules that take
you from one state to another.
• Finite automata have finite state space with finite alphabets(symbols).
• For a finite automata we have: MDFA = {S,∑ ,δ ,S0 ,F}
• Original application was sequential switching circuits, where the “state” was
the settings of internal bits.
Action
State
Representing Finite Automata
• Initial State
• Dead state
• Final state
• Arcs indicate state transitions.
• Labels on arcs tell what causes the transition
Deterministic Finite Automata
• Q = {q0,q1,q2}
• ∑ = {0,1}
• start state = q0
• F = {q2}
• Transition table