The pumping lemma of a context free language is defined as :
If L is a context free language then L has a pumping length k such that any string w where |w| >= k can be divided into 5 parts as L = uvxyz and the following 3 conditions hold true :
The given language L is :
L = { a^n b^m c^n d^m : n, m >= 0 }
Let the pumping length be k and the string used be w = a^p b^2p c^n d^2p.
Let the value of k be 4.
Then,
w = a^4 b^8 c^4 d^8
According to pumping lemma, the string w is divided as :
w = u v x y z
Assume that the given langauge is context free.
The following cases are evaluated in order to implement the pumping lemma :
Case 1 :
v contains only one kind of symbol and y also contains only one type of symbol.
w = a^4 b^8 c^4 d^8 = u v x y z
u = aaa
v = a
x = bb
y = b
z = bbbbbccccdddddddd
According to the first condition of pumping lemma, u v^i x y^i z is in L for every i >= 0.
Let i = 2,
then, w = u v^i x y^i z = u v^2 x y^2 z = aaaaabbbbbbbbbccccdddddddd = a^5 b^b^9 c^4 d^8. Here,the powers of a and c don't match and also the powers of b and d don't match. So, this is not in L.
Case 2 :
v consists of more than one kind of symbol or y consists of more than one kind of symbol.
w = a^4 b^8 c^4 d^8 = u v x y z
u = aaa
v = ab
x = b
y = b
z = bbbbbccccdddddddd
According to the first condition of pumping lemma, u v^i x y^i z is in L for every i >= 0.
Let i = 2,
then, w = u v^i x y^i z = u v^2 x y^2 z = aaaababbbbbbbbbccccdddddddd but this is not in L.
Both the cases contradict the assumption that the language L is context free.
Hence, it is proved that the given language L is not a context free language.
E={a,b,c,d}, L = {anbmchdm : n, m 2 0}. For example, s = aabccd e L...
T F 5, Σ = {a,b), L = { s: s = anbm, nzn, m20, Isl s IP(Σ)13. (Th not longer than the number of elements in the power set of 2.) The re language pumping theorem could show that L RLs. T F 6. An NDFSM that recognizes a language L may have computation branc at is, s e L iff s is it accepts a string w L. 7. ISI = Ko, where S is a set. Ir(s)l...
1. For a string s e 0, î, 2;" and a symbol d e { 0,1,2} let #(s, d) denote the number of times d appears in s. For example, #(0120012, 0)-3. Consider the language: {0, 1, 2. #(11,0) L- #(w, 1), #(11,2) #(w, 2) } . {utfw #(w, 0), #(11, 1) u, w, e For example, 2021 02#0011222 Construct a TM that decides this language. Provide a formal definition of your TM 1. For a string s e 0,...
a) Draw helical wheels for each of the following two sequences. 1) E-L-K-D-L-S-K-S 2) L-R-K-L-E-R-S-L b. In the diagram above show likely interactions between each sequence. C What is the name of the secondary structure this may form
that h(mn ) h ( m)n, h ( ) and that if m < n then h ( m ) < n ( n ) = . Exercise 2.7.4. [Used in Theorem 2.7.1.] Complete the missing part of Step 3 of the proof of Theorem 2.7.1. That is, prove that k is surjective. Exercise 2.7.5. [Used in Theorem 2.7.1.] Let Ri and R2 be ordered fields that satisf We were unable to transcribe this imageWe were unable to transcribe this...
A B C D E F G H 1 J K L M N 0 P Q Exercise Single shear test of timber Insert any discussions/comments on this page For the data provided in the table below, determine the single shear strength for each test regime. Also, comment on the respective test results, whether they are satisfactory or not. Note: The cells for 'Area of cross section', and 'Single shear stress' are not locked for editing Failure load, N Single...
A. 67 ft/s. B. 130 ft/s. C. 120 ft/s. D. 49 ft/s. E. 82 ft/s 19. A hammer and feather are dropped from the same height above the lunar surface. Which object hits the ground first? A. the hammer B. neither, because they both float in space C. the feather D. both at the same time E. none of the above l From a nisingair halloon and hits the ground 7.00 second
u(20) for all z e D. Prove tha E C:0<zl<2) and Cr be the positively oriented 9 (10) Suppose that f is analytic in the deleted disk B2(0) C be the positi that If(2)l S M<oo for all z e B2(0). If 0 TS circle |zl r. Show that S 1, then let Cr r | 1= f(z) dz = 0. (Hint: why is the value of (1) the same if C, is replaced by C? u(20) for all z...
need help on work An d le e shu 1 m the picture below perfo' ms vdnous physicdl exercises The pd dme ers or the dthlete dre d ullows. The he'uht rrum the nuo o che pdlm of he hands length from the hip to the knee is w_o.om, and the height from the floor to the hip i: k-1.02°m. The diameter cf te pate on the barbell is L-0 45m. dised uve hedd s l-2.225m the length or the...
e c(s) X(s) S+3 B(s) D(s) Kh PROBLEM 1 Consider the system shown in the figure above. Write an expression for signal.Xs) in terms of complex variable s and output signal C(s). a) b) Write the closed-loop transfer fiunction C( for the system. for the system. ) Recalling that for a second-order system such as this, that the closed-loop transfer function has the form damping ratio ?= 0.5 and an undamped natural frequency on-6 rads. T , determine the values...
느 - K L M N O Р Q R S B с D E F G H 4 A sample of households provided the following information about their Per Capita Income. 5 Use Excel to construct a percent frequency distribution table and graph. 6 Provide an appropriate label for each of the horizontal and vertical axes. 7 Make your first class "30,000-34,999" 8 Place the frequency distribution table and histogram within the highlighted box below. 9 Per Capita 10...