The Gateway to Computer Science Excellence

First time here? Checkout the FAQ!

x

0 votes

For $A, B ⊆ Σ^*$, define

$A/B = \{x ∈ Σ^* | ∃y ∈ B, xy ∈ A\}$

If $L$ is a $CFL$ and $R$ is regular, then $L/R$ is

- Regular
- $CFL$ but not regular
- Recursive but not $CFL$
- None of the above

+2 votes

Best answer

**Answer : D**

$L/R$ where $L$ is CFL and $R$ is Regular, then $L/R$ will definitely be CFL because CFL's are closed under right Quotient operation with Regular languages. (See proof here if interested : https://cs.stackexchange.com/questions/20090/closure-of-cfl-against-right-quotient-with-regular-languages )

Though, CFL's are closed under right Quotient operation with Regular languages, But this only means that CFL under right Quotient operation with Regular languages will be CFL. It doesn't mean that It can't be Regular.

For instance, If the given CFL itself is Regular then result will also be regular.

Or Even if $L$ is Non-regular CFL, then also $L/R$ can be Regular.

For example, Consider this :

$L = \left \{ a^nb^n \,\,|\,\,n \geq 1 \right \}$ and $R = \left \{ b^n \,\,|\,\,n \geq 1 \right \}$

then $L/R = \left \{ a^n \,\,|\,\,n \geq 1 \right \}$ Which is Regular.

So, the correct answer for the asked question will be "$L/R \,\,is\,\, CFL$. Hence, Option D is correct.

- All categories
- General Aptitude 1.3k
- Engineering Mathematics 5.2k
- Digital Logic 2k
- Programming & DS 3.7k
- Algorithms 3.2k
- Theory of Computation 4k
- Compiler Design 1.6k
- Databases 3k
- CO & Architecture 2.6k
- Computer Networks 3k
- Non GATE 1k
- Others 1.3k
- Admissions 486
- Exam Queries 435
- Tier 1 Placement Questions 18
- Job Queries 56
- Projects 9

36,157 questions

43,608 answers

123,961 comments

42,860 users