Unit I Finite Automata 1. What Is Deductive Proof?
Unit I Finite Automata 1. What Is Deductive Proof?
Unit I Finite Automata 1. What Is Deductive Proof?
theory of computation because they are more flexible and easier to use than
DFA.
Deterministic Finite Automaton is a FA in which there is only one path for a
specific input from current state to next state. There is a unique transition on
each input symbol.(Write examples with diagrams).
8.What is -closure of a state q0?
-closure(q0 ) denotes a set of all vertices p such that there is a path from q0
to p labeled . Example :
q0 q1
-closure(q0)={q0,q1}
9.What is a : (a) String (b) Regular language
A string x is accepted by a Finite Automaton M=(Q,,.q0,F) if (q0,x)=p, for
some p in F.FA accepts a string x if the sequence of transitions corresponding
to the
symbols of x leads from the start state to accepting state.
The language accepted by M is L(M) is the set {x | (q0,x) is in F}. A language
is regular if it is accepted by some finite automaton.
10.Define Induction principle.
Basis step:
P(1) is true.
i=1 example:0+={0,00,000,..}
13.What is Ardens Theorem?
Ardens theorem helps in checking the equivalence of two regular
expressions. Let P and Q be the two regular expressions over the input
alphabet . The regular
expression R is given as : R=Q+RP
Which has a unique solution as R=QP*.
14.Write a r.e to denote a language L which accepts all the strings which
begin or end with either 00 or 11.
The r.e consists of two parts: L1=(00+11) (any no of 0s and 1s)
=(00+11)(0+1)*
L2=(any no of 0s and 1s)(00+11)
=(0+1)*(00+11) Hence r.e R=L1+L2
=[(00+11)(0+1)*] + [(0+1)* (00+11)]
15.Construct a r.e for the language which accepts all strings with atleast
two cs over the set ={c,b}
(b+c)* c (b+c)* c (b+c)*
16.Construct a r.e for the language over the set ={a,b} in which total
number of as are divisible by 3
( b* a b* a b* a b*)*
17.what is: (i) (0+1)* (ii)(01)* (iii)(0+1) (iv)(0+1)+
(iv) Split the word z into u,v and w such that |uv|<=n and |v|>=1.
(v) You achieve a contradiction to pumping lemma that there exists an i
Such that uviw is not in L.Then L is not a regular language.
23. What is the closure property of regular sets?
The regular sets are closed under union, concatenation and Kleene closure.
r1Ur2= r1 +r2
r1.r2= r1r2 ( r )*=r*
The class of regular sets are closed under complementation, substitution,
homomorphism and inverse homomorphism.
24.Reg exp for the language such that every string will have atleast one
a followed by atleast one b.
R=a+b+
25.Write the exp for the language starting with and has no consecutive
bs
reg exp=(a+ab)*
26.What is the relationship between FA and regular expression.
Regular
Expression
Deterministic
Finite