COT-5310 Theory of Computation IAssignment 4Florida International UniversityKnight Foundation School of Computing and Information Sciences1. (15 points) Assume that A = {anbmck|n,m, k ∈ Z≥0, n...

1 answer below »
There is file that I was attached to this question.


COT-5310 Theory of Computation I Assignment 4 Florida International University Knight Foundation School of Computing and Information Sciences 1. (15 points) Assume that A = {anbmck|n,m, k ∈ Z≥0, n = 2m} and B = {anbmck|n,m, k ∈ Z≥0,m = 2k} are two CF languages. (a) (10 points) Use A and B to prove that the family of context-free languages are not closed under intersection (Hint: show that A∩B is not a CFL using pumping lemma for context-free languages). (b) (5 points) Use the proven claim in part a to show that the family of context-free languages are not closed under complement. 2. (15 points) Prove that {anbm2cn2dm|n,m ∈ Z≥0} is not context-free. 3. (35 points) Considering the following state diagram representing a Turing machine, answer to following questions: (a) (10 points) Assuming that Σ = {0, 1}, specify the tuple representing this TM (including the transition function). (b) (10 points) Show the computation process of this TM on the input 0111 as a sequence of instantaneous configurations. (c) (10 points) Is there an input string in which the TM does not halt? If yes, show an example; otherwise, formally prove that for every input string, the TM halts. (d) (5 points) Specify the language recognized by the TM. 1 4. (25 points) Provide an implementation-level description (state-diagram) of TM that recognizes the language L = {0b m+n 2 c1m2n|m,n ∈ Z≥0}. 5. (10 points) Prove that decidable languages are closed under concatenation, comple- ment, union, and intersection operations. 2
Answered 1 days AfterOct 18, 2022

Answer To: COT-5310 Theory of Computation IAssignment 4Florida International UniversityKnight Foundation...

Baljit answered on Oct 19 2022
44 Votes
ASSIGNMENT-4
1.
(a) Given
A=
B=
Both are context free language.
Suppose Intersection of both languages is L
L=
Now
L=
Now according to pumping lemma.
If L is context free language. Then ‘A’ has pumping length ‘P’ such that any string ‘S’,where |S|>=P may be divided into 5 pieces S=uvxyz such that
(1) uvixyiz is in L for every i>=0
(2) |vy|>0
(3) |vxy|<=P
Suppose P=3
So S=a3b3c3=aaabbbccc
Suppose u=aa,v=ab,x=bb,y=c,z=cc
For i=2 uv2xy2z
Which becomes
aa(ab)2(bb)(c)2(cc)=aaababbbcccc
but our language should follow the pattern
So this condition is False.
So L is not Context free language.
(b) Now For complement of L
and also
If context-free languages were closed under complement, they would also be closed under intersection.
Therefore context-free languages are not closed under complementation because they are not closed under intersection.
2.
Now according to pumping lemma.
If L is context free language.Then ‘A’ has pumping length ‘P’ such that any string ‘S’,where |S|>=P may be divided into 5 pieces S=uvxyz such that
(1) uvixyiz is in L for every i>=0
(2) |vy|>0
(3) |vxy|<=P
Suppose n=m=P And P=2
So
S==
S=aabbbbccccdd
Let u=aa,v=bb,x=bbc,y=cc,z=dd
(1) For i=2 uvvxyyz must be in S.
which is aabbbbbbccccdd
But string should follow the pattern of ...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here