CS402 Assignment Solution
CS402 Assignment Solution
com
Semester: Fall 2010 Best Website To Help
VU
CS402- Theory of Automata Students
Recursive definition:
Question 1: Solution:
Regular Expression :
Question 2: Solution:
Finite Automata :
Question 3: Solution:
Language having *
(a + b) aa(a + b)
*
all strings having aa
Language having *
(a + b) bba(a + b)
*
all strings having
bba
Language having ab a
*
all strings not
havi ng two
consecuti ve
a’s
Language having *
((a + b)(a + b)) (a + b)
all strings not
havi ng even no.
of a’s and b’s
RE to FA and FA to RE:
Question 4: Solution :
* *
(a) Language having all string s having aa [ Given in Question 2 RE = (a + b) aa(a + b) ]
As we know that every FA can be consider to be a TG as well so we can Convert FA into TG with the help of G TG as
As we know that every FA can be consider to be a TG as well so we can Convert FA into TG with the help of G TG as
So RE is ab*a