Академический Документы
Профессиональный Документы
Культура Документы
Goswami
No queries.
Answers of all parts of a quest.ion must appear together.
~)
,;1'. 14Marks I Construct a regular expression for each of the following languages. I:)
({- S( >!: .
'--
(a) The set of all binary strings having either 000 or III as a substring. ~ tr
D\~
>I'
(b) The set of all binary strings having 'both 000 m: 111 as substrings. ~
W I'
~
3v{:8i\1arks Here is a transition table for a DFA. Give the regular expressions
I
"*" t: '
tv )(.tv
RW ,R~~) and R~~). (Simplify the expressions as much as possible.)
° 1 c/O ".
r5
E ~
q,
Bt
i
II
q2
q, I q,
q1
>itCT
h-
,jIt~
tv
><.:.'-
e,-
00
,
W
.:;>P 0...A. (i
0-.' 4;vv/~et N = ({qo,q1,q2}, {a, b,c}, 6,qo,{q2}) where r5is given by the following table: Q '\
",-" ~,
'O-~ " (l...;''l-
a b ICE 0&-
- ~.,) ~/j
qo {qo} cp 1; {qd ~-,) ~
~ ~pt;
,.,..(Q.() q1 cp {q1} cp {q2} ~ \) ~
.,., q2 <P <p { q2 } cp ,r-'
~.
'0 (. - 016 ,,",,0 l\l"""
~Marks What. is the £-closure of {qo} ?
, -,
I
r
<:) , "".
~
C:;)' --:>
#--
~4.-(~ f J..U..
~ ====-=-===
l1."~
.~
~J' ~2
~,
~ ~ ~~~
L I UL.'\.. ~ ~ ~,Ir- \ 2.- ~ (i.-t()'-0 - , \.-\()'\..-'!.- , ~)...\
1.- \
("\) j... <' L..-)
0 \..-"V
September 20, 2004 (5301 Formal Lnaguages and Automata Mid Sem
j(,15Marks I Let L be the set of strings of the form Oilj such that the greatest
common divisor of i and j is 1. Show tlwt L is not regular.
(,0r "6/"" .
,'
'1,'"
\°
""'s
So"?
t.. >\0 \ ()-..Qo
.