1
You visited us
1
times! Enjoying our articles?
Unlock Full Access!
Byju's Answer
Other
Other
Introduction to CFL
Consider the ...
Question
Consider the language
L
1
and
L
2
;
L
1
=
{
w
w
|
w
ϵ
(
a
,
b
)
∗
}
L
2
=
¯
L
1
Which of the following is most strongest answer?
A
L
1
is
C
S
L
and
L
2
is Recursive Language
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
L
1
is
C
S
L
and
L
2
is
C
F
L
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
C
None of the above
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
Both
L
1
and
L
2
is
C
F
L
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution
The correct option is
B
L
1
is
C
S
L
and
L
2
is
C
F
L
L
1
is well known
C
S
L
.
L
2
is a CFL as there is a CFG for
L
2
given below.
S
→
A
|
B
|
A
B
|
B
A
A
→
a
|
a
A
b
|
a
A
a
|
b
A
b
|
b
A
a
B
→
b
|
a
B
a
|
a
B
b
|
b
B
b
|
b
B
a
Suggest Corrections
0
Similar questions
Q.
Consider the following languages:
L
1
=
{
w
w
∣
w
ϵ
{
a
,
b
}
∗
}
L
2
=
{
w
w
R
∣
w
ϵ
{
a
,
b
}
∗
,
w
R
i
s
t
h
e
r
e
v
e
r
s
e
o
f
w
}
L
3
=
{
0
2
i
∣
i
i
s
a
n
i
n
t
e
g
e
r
}
L
4
=
{
0
i
2
∣
i
i
s
a
n
i
n
t
e
g
e
r
}
Which of the languages are regular?
Q.
Conisder the following languages :
L
1
:
{
w
w
|
w
ϵ
{
a
}
∗
}
L
2
:
{
w
w
|
w
ϵ
{
a
b
}
∗
}
Which of the above languages in non - regular but CFL ?
Q.
If
L
1
=
{
a
n
∣
n
≥
0
}
and
L
2
=
{
b
n
∣
n
≥
0
}
, consider
I.
L
1
⋅
L
2
is a regular language
II.
L
1
⋅
L
2
=
{
a
n
b
n
∣
n
≥
0
}
Which one of the following is CORRECT?
Q.
Consider the following sets
L
1
and
L
2
.
L
1
=
{
L
|
L
accepted by " PDA by final state " over
Σ
=
{
a
,
b
}
}
L
2
=
{
L
|
L
accepted by " PDA by Empty state " over
Σ
=
{
a
,
b
}
}
Which of the relation is correct?
Q.
If
L
1
≤
L
2
and
L
2
is undecidable then
L
1
is:
View More
Join BYJU'S Learning Program
Grade/Exam
1st Grade
2nd Grade
3rd Grade
4th Grade
5th Grade
6th grade
7th grade
8th Grade
9th Grade
10th Grade
11th Grade
12th Grade
Submit
Related Videos
Introduction to CFL
OTHER
Watch in App
Explore more
Introduction to CFL
Other Other
Join BYJU'S Learning Program
Grade/Exam
1st Grade
2nd Grade
3rd Grade
4th Grade
5th Grade
6th grade
7th grade
8th Grade
9th Grade
10th Grade
11th Grade
12th Grade
Submit
AI Tutor
Textbooks
Question Papers
Install app