You are on page 1of 1

 Automata theory: Example − If ∑ = { a, b } , ∑+ = { a, b, aa, • R + ∅ = ∅ + R = R (The identity for

the study of abstract computing devices, ab, ba, bb,………..} union)


or ”machines” • R ε = ε R = R (The identity for
automaton is an abstract self-propelled Concatenation of strings concatenation)
computing device which Let w1 and w2 be two strings then • ∅ L = L ∅ = ∅ (The annihilator for
follows a predetermined sequence of w1w2 denotes their concatenation w. concatenation)
operations automatically. The concatenation is formed by making • R + R = R (Idempotent law) • L (M +
Automaton is based on the a copy of w1 and followed by a copy of N) = LM + LN (Left distributive law)
mathematical concept of computation w2. • (M + N) L = ML + NL (Right
which includes symbols, alphabets and distributive law)
strings. For example w1 = xyz, w2 = uvw • ε + RR* = ε + R*R = R* Transition diagram for Moore machine
then w = w1w2 = xyzuvw will be:
 Central Concepts of Automata 15. Explain the procedure for
Theory Reversal : transforming a Mealy machine to
Writing symbols in the reverse order. Moore.converting the Mealy machine
Alphabet to Moore machine, we will create a
A finite, nonempty set of symbols. separate state for
Symbol: Σ Sub string every new output symbol and according
Examples: String of consecutive characters from to incoming and outgoing edges are
The binary alphabet: Σ = {0, 1} the given string. distributed.
The set of all lower-case letters: Σ = {a, The following steps are used for
b, . . . , z} converting Mealy machine to the Moore
The set of all ASCII characters Palindrome machine:
Combination of binary as well as String that can be read the same way in Step 1: For each state(Qi), calculate the
alphabets Σ = {0,1,a, b, . . . , z} both forward and backward direction. number of different outputs that are 16. Define Regular Expression?
available in the transition table of the
17. Regular Expressions are used to
 String Mealy machine.
denote regular languages. An expression
is a finite sequence of symbols chosen Prefix and suffix Step 2: Copy state Qi, if all the outputs
is regular if:
from some alphabet A prefix of a string is any number of of Qi are the same. Break qi into n
defined as follows −
Example: leading symbols of that string, and suffix states as Qin, if it has n distinct outputs • ε is a Regular Expression indicates the
01101 and 111 are strings from the binary is any number of trailing symbols. where n = 0, 1, 2…
language containing an empty string.
alphabet Σ = {0, 1} Step 3: If the output of initial state is 0,
(L (ε) = {ε})
insert a new initial state at the starting
• φ is a Regular Expression denoting an
 Length of a string which gives 1 output.
empty language. (L (φ) = { })
the number of positions for symbols Example: Convert the following Mealy
• For every xϵ∑, x is a Regular Expression
present in the string machine into equivalent Moore
where L = {x} If r1 is a Regular
Notation of length of the string w: |w| machine.
Expression denoting the language L(r1)
and r2 is a Regular
 Empty string Expression denoting the language L(r2),
The string with zero occurrences of then
strings. • L(r1+r2) = L(r1) ∪ L(r2). • L(r1.r2) =
20. Explain Arden’s Theorem
Denoted by epsilon є or λ. L(r1) . L(r2) • L(r1*) = (L(r1))*
If String empty | є |=0 • L((r1))=L(r1)
In order to find out a regular expression
of a Finite Automaton, we use Arden’s The last four rules of this definition are
Theorem along with the properties of used to reduce L(r) to simpler
Powers of an alphabet components
regular expressions.
If Σ is an alphabet, we can express the respectively. The first three are the
Statement −
set of all strings of a certain length from termination conditions for this
Let P and Q b e two regular
that alphabet by using the exponential recursion.
expressions.If P does not contain null
notation:
string
Σ k: the set of strings of length k, each of
ε, then R = Q + RP has a unique
whose is in Σ
solution that is R = QP* Solution: Transition table for above
Proof − Mealy machine is as follows:
Empty string
R = Q + (Q + RP)P [After putting the
The string with zero occurrences of
value R = Q + RP]
strings.
= Q + QP + RPP
Denoted by epsilon є or λ.
When we put the value of R r ecursively
If String empty | є |=0
again and again, we get the following
equation −
R = Q + QP + (Q+RP)PP
Powers of an alphabet
R = Q + QP +QP2+ QP3…..
If Σ is an alphabet, we can express the
R = Q (ε + P + P2 + P3 + …. )
set of all strings of a certain length from
R = QP* [As P* represents (ε + P + P2 + The state q1 has only one output
that alphabet by using the exponential
P3 + ….) ] . The state q2 and q3 have both output
notation:
Hence, proved. 0 and 1.
Σ k: the set of strings of length k, each of
So we will create two states for these
whose is in Σ
19. Write a short note on Identity states.
properties of Regular Expressions For q2, two states will be q20(with
Representation −
Identities Related to Regular output 0) and q21(with output 1)
∑* = ∑0 ∪ ∑1 ∪ ∑2 ∪……. where ∑p is
Expressions . Similarly, for q3 two states will be
the set of all possible strings of length p.
Given R, P, L, Q as regular expressions, q30(with output 0) and q31(with output
Example − If ∑ = {a, b}, ∑* = {λ, a, b, aa,
the following identities hold – 1)
ab, ba, bb,………..}
• ∅* = ε .Transition table for Moore machine
Positive closure
• ε* = ε will be:
Definition − The set ∑+ is the infinite set
• RR* = R*R
of all possible strings of all possible
• R*R* = R*
lengths over ∑ excluding λ.
• (R*)* = R*
Representation −
• (PQ)*P =P(QP)*
∑+ = ∑1 ∪ ∑2 ∪ ∑3 ∪…….
• (a+b)* = (a*b*)* = (a*+b*)* = (a+b*)* =
∑+ = ∑* − { λ }
a*(ba*)*

You might also like