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 following languages:
I
.
{
a
m
b
n
c
p
d
q
|
m
+
p
=
n
+
q
,
w
h
e
r
e
m
,
n
,
p
,
q
≥
0
}
I
I
.
{
a
m
b
n
c
p
d
q
|
m
=
n
,
a
n
d
p
=
q
,
w
h
e
r
e
m
,
n
,
p
,
q
≥
0
}
I
I
I
.
{
a
m
b
n
c
p
d
q
|
m
=
n
=
p
,
a
n
d
p
≠
q
,
w
h
e
r
e
m
,
n
,
p
,
q
≥
0
}
I
V
.
{
a
m
b
n
c
p
d
q
|
m
n
=
p
+
q
,
w
h
e
r
e
m
,
n
,
p
,
q
≥
0
}
The number of languages that are context free ____.
2
Open in App
Solution
The correct option is
A
2
Both I and II are context free.
Suggest Corrections
0
Similar questions
Q.
Consider the following languages:
I.
{
a
m
b
n
c
p
d
q
|
m
+
p
=
n
+
q
,
w
h
e
r
e
m
,
n
,
p
,
q
≥
0
}
II.
{
a
m
b
n
c
p
d
q
|
m
=
n
a
n
d
p
=
q
,
w
h
e
r
e
m
,
n
,
p
,
q
≥
0
}
III.
{
a
m
b
n
c
p
d
q
|
m
=
n
=
p
a
n
d
p
≠
q
,
w
h
e
r
e
m
,
n
,
p
,
q
≥
0
}
IV.
{
a
m
b
n
c
p
d
q
|
m
n
=
p
+
q
,
w
h
e
r
e
m
,
n
,
p
,
q
≥
0
}
Which of the language above are context-free?
Q.
Let P be a regular language and Q be a context-free language such that
Q
⊆
P
. (For example, let P be the language represented by the regular expression
P
∗
q
∗
and Q be
{
p
n
q
n
∣
n
ϵ
N
}
Then which of the following is ALWAYS regular ?
Q.
Consider the languages L1, L2 and L3 are given below:
L1 = {
0
p
1
q
|
p
,
q
ϵ
N
},
L2 = {
0
p
1
q
|
p
,
q
ϵ
N
and p = q} and
L3 = {
0
p
1
q
0
r
|
p
,
q
,
r
ϵ
N
and p = q = r}
Which of the following statements is NOT TRUE?
Q.
(i) TCP M. Physical Layer
(ii) Repeaters N. Network layer
(iii) Routers P. Transport layer
(iv) SMTP Q. Application layer
(i) (ii) (iii) (iv)
(a) M N P Q
(b) P M N Q
(c) P N M Q
(d) N P Q M
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