1
You visited us
1
times! Enjoying our articles?
Unlock Full Access!
Byju's Answer
Standard VI
Mathematics
Commutative Property
Identify the ...
Question
Identify the unambiguous grammar.
A
None of these
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
E
→
E
+
E
|
E
∗
E
|
i
d
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
S
→
a
S
|
S
b
|
ε
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
S
→
|
a
S
b
|
ε
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
Open in App
Solution
The correct option is
D
S
→
|
a
S
b
|
ε
(
A
)
E
→
E
+
E
|
E
∗
E
|
id is ambiguous grammar.
"id + id * id" has 2 Parse trees
(
B
)
S
→
a
S
|
S
b
|
ε
is ambiguous grammar.
"ab" has 2 Parse trees
(
C
)
S
→
a
S
b
|
ε
is unambiguous grammer.
Every string in
a
n
b
n
has one Parse tree
Suggest Corrections
1
Similar questions
Q.
Consider the following statements:
S
1
:
Every SLR(1) grammar is unambiguous but there are certain unambiguous grammars that are not SLR(1).
S
2
:
For any context-free grammar, there is a parser that takes at most
O
(
n
3
)
time to parse a string of length n.
Which one of the following options is correct?
Q.
Differentiate between :
Unambiguous and degenerate codons
Q.
Differentiate between the genetic codes:
Unambiguous and Universal
Q.
'Genetic code is unambiguous and specific.' Explain.
Q.
The questions in a survey or questionnaire should be unambiguous.
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
Properties of Operators: Commutative Associative and Distributive
MATHEMATICS
Watch in App
Explore more
Commutative Property
Standard VI Mathematics
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