Beruflich Dokumente
Kultur Dokumente
Automata
Basic Terminology
Letters:
Are symbols/ characters out of which we build language for machine.
For Example :
0,1,2,3,4………. or A,B,C,D…………..
Alphabets:
A Set of letters , Denoted by Geek letter Sigma ∑
Example
∑ = {a,b} or ∑ = {1,2}
String :
the concatenation of letters Or the sequence of letter/symbols
aa, ab, ba, bb …….
Strings shown with no commas, e.g., abc
ε stands for the empty string (string of length 0)
Σ* denotes strings of all characters including ε
Example Strings {0,1}* = {ε, 0, 1, 00, 01, 10, 11, 000, 001, . . . }
Languages:
is set of strings with some rules
Or A language is a subset of Σ* for some alphabet Σ
Example: The set of strings of 0ʼs and 1ʼs with no two consecutive 1ʼs.
L1 = {ε, 0, 1, 00, 01, 10, 000, 001, 010, 100, 101, 0000, 0001, 0010,, . . . }
The set of strings containing pattern 010
L2 = { 010, 0010, 1010, 00010, 01010 . . . }
A set of strings which starts and ends with a’s from alphabet {a,b}
L3 = {aa, aba, abba…………}
Transition:
• Assume that door is CLOSED.
• A person steps on the front pad.
• Door OPENS.
• State changes from CLOSED to OPEN
DFA –Formal Definition
Nodes = states.
Arcs represent transition function.
Arc from state p to state q labeled by all those input symbols that have
transitions from p to q.
Arrow labeled “Start” to the start state.
Final states indicated by double circles.
Example: String in a Language
Vending Machines
Traffic Lights
Video Games
Vending Machines