Suppose that we have a language L dened over the alphabet {a, b, c} and suppose that L is context-free. We define a new language pm(L)
to be the setof all permutations of all words in L. For example, if L = {abc, aab} then pm(L) = {abc, acb, bac, bca, cab, cba, aab, aba, baa}.
Show that pm(L) need not be context-free by giving an example of a language L that is context-free but where pm(L) is not context-free.
Given that,
L={a,b,c} which is context free
and
pm(L)={permutations of L}
to prove,
pm(L) is not a context free grammer
pm(L)={(L)*} =L*,where L =alphabets
L* which is not context free,because it jumps from alphabets of context free.
Hence it proved
Suppose that we have a language L dened over the alphabet {a, b, c} and suppose...
John Doe claims that the language L, of all strings over the alphabet Σ = { a, b } that contain an even number of occurrences of the letter ‘a’, is not a regular language. He offers the following “pumping lemma proof”. Explain what is wrong with the “proof” given below. “Pumping Lemma Proof” We assume that L is regular. Then, according to the pumping lemma, every long string in L (of length m or more) must be “pumpable”. We...
Suppose there are 3 characters in a language L, and we have built a unigram model. The probabilities for the 3 characters are given by the models are P(“A”) = 0.25, P(“B”) = 0.50, and P(“C”) = 0.25. What will be the expression to calculate the perplexity of for the sequences “AAA” and “ABA”?
(4) [20 pts] Let L be the language defined by a regular expression (O | 1)0+(01 1)). over t alphabet f(o,1, +) (a) (4pt) Write down 5 different words from L (b) (8pt) Describe L using words. (c) (8pt) Draw an automaton accepting L (ideally, deterministic).
(4) [20 pts] Let L be the language defined by a regular expression (O | 1)0+(01 1)). over t alphabet f(o,1, +) (a) (4pt) Write down 5 different words from L (b) (8pt) Describe...
(20) Let L be the language over {a,b,c} accepting all strings so that: 1. No b's occur before the first c. 2. No a's occur after the first c. 3. The last symbol of the string is b. 4. Each b that is not the last symbol is immediately followed by at least two c's. 5. There are exactly as many a's as b's. Construct a context-free grammar generating L. You do not need an inductive proof, but you should...
QUESTION 1: Why must project manager should have good technical skills but also good management skills? QUESTION 2: **Communication and Communicator are related" This quote from the text suppose that the communication process is lead by the spokeperson. Do you think is it a gift" to be a good communicator or a skill to improve ( use example of your knowledge to answer)? QUESTION 3: Look at the text paragraph yellow highlighted, and do you think that in today's world...