Suppose that

a) show that
is a context free language
b) show that
for every
is also context free
CFG is a Formal Grammer is used to Generate Set of strings . It is also called as Type 2 Grammer
Syntax = G= {V,T,P,S}
Given L = anbn : n > = 0
It means for a derived string have number of a's is equal to number of b's
if n=2 then L = {a2b2} String = aabb
=> aSb here S = string(i.e Derive any number of a's and any number of b's)
=> aabb ( S-> ab)
Grammer G = { V.T,P,S}
V= { S }
T = { a,b,e} (here e = epsilon)
P : S->aSb/ab/ e
S = Sta
a) Given that L2 is a CFG
as L = { anbn}
L2 is represented as L x L = { a2n b2n } if n = 1 ,
L2 = { a2 b2 } String = aabb ( in which derived string is same as L}
if n=0 L2 string derives (Epsilon e)
Therefore L2 is also a CFG.
b) Given Lk : k > = 1
Lk = {ak bk }
as L and L2 are CFG , Lk is also be CFG
ex : if k = 2
L2 derives the string aabb . It is also CFG
Suppose that a) show that is a context free language b) show that for every is...
Let a and be be in . Show
the following. If gcd(a,b)=1, then for every n in there
exist x and y in such
that n=ax+by.
We were unable to transcribe this imageWe were unable to transcribe this imageWe were unable to transcribe this image
5. Is the following language A context-free? You either show that A is context-free by giving a context-free grammar for A, or prove that A is not context-free language using the context-free language pumping lemma
Suppose
is a sequence and that the numbers
,
,
, ... are limit points. Show that 0 is also a limit point.
We were unable to transcribe this imageWe were unable to transcribe this imageWe were unable to transcribe this imageWe were unable to transcribe this image
show that the language is context-free, or use the pumping lemma
to show that the language is non-context-free
.
waxl w.x e fo.1 and w contains the substring
Suppose a
c mod n and bd
mod n.
(a) show that a + b
c + d mod n
(b) show that a * b
c * d mod n.
We were unable to transcribe this imageWe were unable to transcribe this imageWe were unable to transcribe this imageWe were unable to transcribe this image
Consider a second-order linear homogeneous equation
Suppose that
are two solutions. Show that
is also a solution to the equation (plug it in and use the fact
that
and
are solutions).
We were unable to transcribe this imageWe were unable to transcribe this imageZhg + th = Eh We were unable to transcribe this imageWe were unable to transcribe this image
Use the CFL (Context Free Language) Pumping Lemma to show each of the following language not to be context-free: a) {a^n b^n c^i | i < n} b) {www | w is a binary string over {0,1}} SHOW ALL WORK AND LEAVE NO STEPS OUT!! NEED THIS ASAP! THANKS!!
Suppose that
is nonempty and bounded above. Then
has a supremum.
Note: Show that there is a least element
such that
is an upper bound for
. if
is not a least upper bound for
, show there is at least
such that
is an upper bound for
. Proceed in this way to find the supremum.
We were unable to transcribe this imageWe were unable to transcribe this imageWe were unable to transcribe this image21 We were unable to...