Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged ambiguous-grammar
0
votes
1
answer
1
ISRO 2024
Consider the context free grammar $G$ for below for the arithmetic expressions: $E \rightarrow E + E | E \times E | \text{id}$ Which of the follosing statements is TRUE: The string $\text{id} + \text{id} \times \text{id}$ has no parse tree according to $G$ The ... tree according to $G$ The string $\text{id} + \text{id} \times \text{id}$ has more than two parse tree according to $G$
Consider the context free grammar $G$ for below for the arithmetic expressions:$E \rightarrow E + E | E \times E | \text{id}$Which of the follosing statements is TRUE:Th...
Ramayya
257
views
Ramayya
asked
Jan 7
Theory of Computation
isro-2024
theory-of-computation
ambiguous-grammar
+
–
1
votes
1
answer
2
NPTEL Assignment Question
Natural language constructs are (A) Unambiguous (B) Ambiguous (C) May be unambiguous or ambiguous (D) None of the other options
Natural language constructs are(A) Unambiguous (B) Ambiguous (C) May be unambiguous or ambiguous (D) None of the other options
rsansiya111
827
views
rsansiya111
asked
Dec 6, 2021
Compiler Design
compiler-design
nptel-quiz
ambiguous-grammar
+
–
3
votes
4
answers
3
ISRO2020-60
A given grammar is called ambiguous if two or more productions have the same non-terminal on the left hand side a derivation tree has more than one associated sentence there is a sentence with more than one derivation tree corresponding to it brackets are not present in the grammar
A given grammar is called ambiguous iftwo or more productions have the same non-terminal on the left hand sidea derivation tree has more than one associated sentencethere...
Satbir
9.0k
views
Satbir
asked
Jan 13, 2020
Compiler Design
isro-2020
compiler-design
ambiguous-grammar
easy
+
–
0
votes
0
answers
4
Ullman (Compiler Design) Edition 2 Exercise 4.6 Question 9 (Page No. 259)
The following is an ambiguous grammar: $S\rightarrow AS\mid b$ $A\rightarrow SA\mid a$ Construct for this grammar its collection of sets of $LR(0)$ items. If we try to build an LR-parsing table for ... choosing a possible action whenever there is a conflict. Show all the possible sequences of actions on input $abab$.
The following is an ambiguous grammar:$S\rightarrow AS\mid b$$A\rightarrow SA\mid a$Construct for this grammar its collection of sets of $LR(0)$ items. If we try to build...
admin
474
views
admin
asked
Aug 20, 2019
Compiler Design
ullman
compiler-design
ambiguous-grammar
lr-parser
descriptive
+
–
0
votes
1
answer
5
Michael Sipser Edition 3 Exercise 2 Question 27 (Page No. 157)
$G$ is a natural-looking grammar for a fragment of a programming language, but $G$ is ambiguous$.$ Show that $G$ is ambiguous$.$ Give a new unambiguous grammar for the same language$.$
$G$ is a natural-looking grammar for a fragment of a programming language, but $G$ is ambiguous$.$Show that $G$ is ambiguous$.$Give a new unambiguous grammar for the same...
admin
1.5k
views
admin
asked
May 4, 2019
Theory of Computation
michael-sipser
theory-of-computation
context-free-grammar
ambiguous-grammar
+
–
0
votes
1
answer
6
UPPCL AE 2018:11
Which of the following statements are $\text{FALSE}?$ Ambiguous grammars must have more than one parse tree for every string. Addition(+), subtraction(-), and assignment(=) operators in $\text{C}$ are left associative. Python is a weekly typed language. $1$ and $2$ $2$ and $3$ $1$ and $3$ $1, 2$ and $3$
Which of the following statements are $\text{FALSE}?$Ambiguous grammars must have more than one parse tree for every string.Addition(+), subtraction(-), and assignment(=)...
admin
328
views
admin
asked
Jan 5, 2019
Compiler Design
uppcl2018
compiler-design
ambiguous-grammar
+
–
0
votes
1
answer
7
Context free grammars
Any left factored Context-Free Grammar is both unambiguous and non-left-recursive. True or false?
Any left factored Context-Free Grammar is both unambiguous and non-left-recursive. True or false?
Iamniks4
433
views
Iamniks4
asked
Dec 12, 2018
Compiler Design
compiler-design
context-free-grammar
ambiguous-grammar
true-false
+
–
1
votes
1
answer
8
self doubt
S->AB A->a B->b this grammar is ambiguous or not. Q2; is it true that the number of left most derivation tree is always equal to number of right most derivation tree.?
S->ABA->aB->bthis grammar is ambiguous or not.Q2; is it true that the number of left most derivation tree is always equal to number of right most derivation tree.?
eyeamgj
307
views
eyeamgj
asked
Nov 12, 2018
Compiler Design
compiler-design
parsing
ambiguous-grammar
descriptive
+
–
1
votes
1
answer
9
Is all ambiguous grammar could be converted to unambiguous?
Dhananjay15
1.4k
views
Dhananjay15
asked
Aug 14, 2018
Compiler Design
compiler-design
grammar
ambiguous-grammar
+
–
2
votes
3
answers
10
Ambiguous and unambiguous grammar
If a grammar( $CFG$ ) has more than one Right most derivation, Can it be called ambiguous ? Or we say a grammar is ambiguous only when it has more than one left most derivation ?
If a grammar( $CFG$ ) has more than one Right most derivation, Can it be called ambiguous ?Or we say a grammar is ambiguous only when it has more than one left most deriv...
Rahul Ranjan 1
1.4k
views
Rahul Ranjan 1
asked
May 28, 2018
Compiler Design
compiler-design
parsing
ambiguous-grammar
+
–
0
votes
5
answers
11
Finding Handles in a grammer
Total number of Handles for $(w=aa)$ in the following grammar ? $S\rightarrow DT$ $D\rightarrow aa$ $T\rightarrow \epsilon$
Total number of Handles for $(w=aa)$ in the following grammar ?$S\rightarrow DT$$D\rightarrow aa$$T\rightarrow \epsilon$
Abhishek Malik
1.3k
views
Abhishek Malik
asked
Apr 5, 2018
Compiler Design
compiler-design
grammar
ambiguous-grammar
+
–
0
votes
1
answer
12
Test Questiion
$G: S\rightarrow SbS\mid a$ Grammars are ambiguous True/False.
$G: S\rightarrow SbS\mid a$Grammars are ambiguous True/False.
Nikhil Patil
356
views
Nikhil Patil
asked
Feb 7, 2018
Compiler Design
compiler-design
parsing
ambiguous-grammar
true-false
test-series
+
–
0
votes
1
answer
13
ambiguity
$E→E−T ∣ T$ $T→T/F ∣ F$ $F→(E) ∣ id$ (E is the start symbol) This grammar is unambiguous but shouldn't it be ambiguous because it has left recursion?
$E→E−T ∣ T$$T→T/F ∣ F$$F→(E) ∣ id$(E is the start symbol)This grammar is unambiguous but shouldn't it be ambiguous because it has left recursion?
A_i_$_h
652
views
A_i_$_h
asked
Dec 23, 2017
Compiler Design
compiler-design
ambiguous-grammar
left-recursion
descriptive
+
–
0
votes
2
answers
14
[Compiler Design] Ambiguity
The productions E -> E+E | E-E | E*E | id a:) generates inherently ambiguous languages b:) generates and ambiguous language c:) is an ambiguous grammer d) none of these
The productionsE - E+E | E-E | E*E | ida:) generates inherently ambiguous languagesb:) generates and ambiguous languagec:) is an ambiguous grammerd) none of these
rahul sharma 5
8.5k
views
rahul sharma 5
asked
Oct 17, 2017
Compiler Design
compiler-design
parsing
ambiguous-grammar
+
–
1
votes
1
answer
15
PARSER
Is this statement true:- If Grammar is unambiguous must be LL(1) if not LL(1) it does not mean ambiguous.
Is this statement true:-If Grammar is unambiguous must be LL(1) if not LL(1) it does not mean ambiguous.
learner_geek
3.5k
views
learner_geek
asked
Aug 16, 2017
Compiler Design
compiler-design
parsing
ambiguous-grammar
+
–
2
votes
1
answer
16
Ullman 4.3
Is this grammar ambiguous? S-->SxA|A A-->AyB|B B-->zB|(S)|m|n I cant prove it ambiguos.As this grammar is not in LR(1) it may or may not be ambiguous.
Is this grammar ambiguous?S >SxA|AA >AyB|BB >zB|(S)|m|nI cant prove it ambiguos.As this grammar is not in LR(1) it may or may not be ambiguous.
reena_kandari
494
views
reena_kandari
asked
Aug 14, 2017
Compiler Design
compiler-design
parsing
ambiguous-grammar
lr-parser
descriptive
+
–
2
votes
2
answers
17
Complier Design Test 1.1
Ques. S --> Aa/bAc/dc A --> d Which of them is correct. Please provide detailed information. a) LALR(1) but not SLR(1) b) Both SLR(1) and LALR(1) c) Grammar is Ambiguous d) Neither SLR(1) NOR LALR(1)
Ques. S Aa/bAc/dc A dWhich of them is correct. Please provide detailed information.a) LALR(1) but not SLR(1)b) Both SLR(1) and LALR(1)c) Grammar is Ambiguo...
Shivam Bhardwaj
888
views
Shivam Bhardwaj
asked
Aug 10, 2017
Compiler Design
compiler-design
parsing
lr-parser
ambiguous-grammar
test-series
+
–
2
votes
1
answer
18
Ambiguous to unambiguous
Make this grammer into unambiguous
Make this grammer into unambiguous
learner_geek
989
views
learner_geek
asked
Aug 5, 2017
Compiler Design
compiler-design
ambiguous-grammar
+
–
1
votes
1
answer
19
Basic grammer
A Grammar which is only left recursive or right recursive can be ambiguous grammar??? Or it should have both left recursive and right recursive to be ambiguous???
A Grammar which is only left recursive or right recursive can be ambiguous grammar???Or it should have both left recursive and right recursive to be ambiguous???
learner_geek
295
views
learner_geek
asked
Aug 3, 2017
Compiler Design
compiler-design
ambiguous-grammar
left-recursion
descriptive
+
–
1
votes
1
answer
20
Parse tree ambiguous or not
If i am wrong please let me correct with giving proper explanation.
If i am wrong please let me correct with giving proper explanation.
learner_geek
561
views
learner_geek
asked
Aug 2, 2017
Compiler Design
compiler-design
parsing
ambiguous-grammar
true-false
+
–
1
votes
1
answer
21
COMPILER DESIGN
How to prove that every regular language is unambiguous?
How to prove that every regular language is unambiguous?
jatin kumar 3
282
views
jatin kumar 3
asked
Jul 30, 2017
Compiler Design
compiler-design
regular-language
ambiguous-grammar
descriptive
+
–
1
votes
1
answer
22
#testbook test series
shefali1
845
views
shefali1
asked
Jul 24, 2017
Compiler Design
compiler-design
parsing
ll-parser
lr-parser
left-recursion
ambiguous-grammar
testbook-test-series
+
–
Page:
1
2
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register