Question

Prove that the language A\B = {w: wx ∈ A, X ∈ B}, where A is...

Prove that the language A\B = {w: wx ∈ A, X ∈ B}, where A is a CFL and B is regular is a CFL.

Homework Answers

Answer #1

The given language is a standard Quotient operation. For clarity, consider the following example to understand the operation before proceeding to the proof:

  • Since A is a CFL and B is a Regular language, A\B is CFL as context free languages are closed under Quotient operation with Regular languages.
  • Proof can be given as:
  • B is a part of wx ,as x∊B And wx∊A

  • Now, L\R (or A\B or wx\x)=CFL/Regular
  • let CFL =anbn  and Regular= b4
  • So, L\R= anbn-4 which is also CFL
  • Hence, A\B is CFL
  • Thus, proved.
Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Prove that the intersection of a CFL and a Regular language is always context free. I...
Prove that the intersection of a CFL and a Regular language is always context free. I was thinking representing the CFL as a PDA, and the regular language as a DFA, then - if they both accept at the same time, the intersection must be context free?
Use CFG or PDA to prove L= {0a1b0c : b ≠ a + c; a, b,...
Use CFG or PDA to prove L= {0a1b0c : b ≠ a + c; a, b, c ≥ _0} is a context-free language. Please add your explanation, thank you. If you can use the theorem(union of CFL and regular language = CFL) is also welcomed.
Suppose A and B are regular language. Prove that AB is regular.
Suppose A and B are regular language. Prove that AB is regular.
Prove that the language ?={?^??^??^?:?≤?+?}is not regular
Prove that the language ?={?^??^??^?:?≤?+?}is not regular
{wRwwR | w ∈{a,b}∗}. prove whether it's regular or not, if it is, draw a DFSM
{wRwwR | w ∈{a,b}∗}. prove whether it's regular or not, if it is, draw a DFSM
For Automata class: Let L be a regular language over the binary alphabet. Consider the following...
For Automata class: Let L be a regular language over the binary alphabet. Consider the following language over the same alphabet: L' = {w | |w| = |u| for some u ∈ L}. Prove that L' is regular.
Prove that the following languages are not regular using pumping lemma: (a) {w : w !=...
Prove that the following languages are not regular using pumping lemma: (a) {w : w != wR} (b) {ai bjak : k ≤ i + j}
Give me Turing Machine for the language {w in (a|b|c)* | no of a's > no...
Give me Turing Machine for the language {w in (a|b|c)* | no of a's > no of b's} ?
Consider the language L3 over alphabet Σ = { a, b }, L3 = { w...
Consider the language L3 over alphabet Σ = { a, b }, L3 = { w ∈ Σ* | w is a palindrome of any length}. Construct a PDA that recognizes L3. Implement that PDA in JFLAP
Is W = {y(x) = (ax+b)e^−x}where a,b ∈ R are arbitrary constants, is a vector space?...
Is W = {y(x) = (ax+b)e^−x}where a,b ∈ R are arbitrary constants, is a vector space? If yes, find its dimension. Give explanations
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT