Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged grammar
1
votes
0
answers
211
UGC NET CSE | December 2009 | Part 2 | Question: 32
Which of the following grammar is LR (1) ? (A) A --> a A b, A --> b A b, A --> a , A --> b (B) A --> a A a, A --> a A b, A --> c (C) A --> A + A, A --> a (D) Both (A) and (B)
Which of the following grammar is LR (1) ?(A) A a A b, A b A b, A a , A b(B) A a A a, A a A b, A c(C) A A + A, A a(D) Both (A) and (B)
rishu_darkshadow
1.7k
views
rishu_darkshadow
asked
Sep 17, 2017
Compiler Design
ugcnetcse-dec2009-paper2
compiler-design
grammar
+
–
0
votes
2
answers
212
Operator Grammar
Given an Operator Grammar as, E -> E*F / F+E / F F -> F-F / id How to determine associativity in this case? Since Operator grammar can be ambiguous also. Is the above question solved using associativity and precedence of operators we consider in C programming? or it is Different.
Given an Operator Grammar as,E - E*F / F+E / FF - F-F / idHow to determine associativity in this case? Since Operator grammar can be ambiguous also.Is the above question ...
AnilGoudar
2.9k
views
AnilGoudar
asked
Sep 15, 2017
Compiler Design
grammar
compiler-design
operator-grammar
+
–
0
votes
2
answers
213
GKP Book
Q:)The following CFG, S-> aB/ bA A->a/ aS/ bAA B -> b/ bS/ aBB generates strings with (a) Odd number of a's & odd number of b’s (b) Even number of a's & even number of b's (c) Equal number of a’s & b’s (d) Odd number of a’s & even number of b’s
Q:)The following CFG, S- aB/ bAA->a/ aS/ bAAB - b/ bS/ aBBgenerates strings with(a) Odd number of a's & odd number of b’s(b) Even number of a's & even number of b's(c) ...
Manish Chetwani
1.3k
views
Manish Chetwani
asked
Sep 15, 2017
Theory of Computation
theory-of-computation
grammar
+
–
1
votes
0
answers
214
TOC (GRAMMAR)
What is the language accepted by the given Grammar ? S -> aSa / bSb / a / b
What is the language accepted by the given Grammar ?S - aSa / bSb / a / b
Ashish Roy
379
views
Ashish Roy
asked
Sep 7, 2017
Theory of Computation
theory-of-computation
grammar
+
–
1
votes
0
answers
215
Intro to Formal Languages and Automata Peter Linz Ex. #2.1.2e
For Σ= {a,b}, construct a dfa that accepts the sets consisting of all the strings with exactly two a’s and more than two b’s.
For Σ= {a,b}, construct a dfa that accepts the sets consisting of all the strings with exactly two a’s and more than two b’s.
Garrett McClure
2.9k
views
Garrett McClure
asked
Sep 7, 2017
Theory of Computation
theory-of-computation
peter-linz
grammar
finite-automata
regular-language
+
–
0
votes
1
answer
216
Automata: Context Free Language
Please solve the b and c parts:
Please solve the b and c parts:
Manu Thakur
536
views
Manu Thakur
asked
Aug 31, 2017
Theory of Computation
context-free-language
theory-of-computation
grammar
+
–
1
votes
1
answer
217
Peter Linz Edition 4 Exercise 1.2 Question 17 (Page No. 29)
Give a verbal description of the language generated by the productions: S → aSb S → bSa S → aa
Give a verbal description of the language generated by the productions:S → aSbS → bSaS → aa
Garrett McClure
792
views
Garrett McClure
asked
Aug 31, 2017
Theory of Computation
theory-of-computation
peter-linz
peter-linz-edition4
grammar
+
–
0
votes
2
answers
218
Peter Linz Edition 4 Exercise 1.2 Question 16 (Page No. 29)
Find a grammar that generates the language: L = {$w$w^R$ : $w$ ∈ {a, b}+}
Find a grammar that generates the language:L = {$w$$w^R$ : $w$ ∈ {a, b}+}
Garrett McClure
586
views
Garrett McClure
asked
Aug 31, 2017
Theory of Computation
theory-of-computation
grammar
peter-linz
peter-linz-edition4
context-free-language
+
–
0
votes
0
answers
219
Ambiguity
Ques. S --> Aa/bAc/dc A --> d Isn't this grammar Ambiguous? If First(S) has more than one production giving the same first value, isn't it ambiguous?
Ques. S Aa/bAc/dc A d Isn't this grammar Ambiguous?If First(S) has more than one production giving the same first value, isn't it ambiguous?
Warlock lord
864
views
Warlock lord
asked
Aug 22, 2017
Compiler Design
ambiguous
grammar
+
–
0
votes
2
answers
220
Test by Bikram | Theory of Computation | Test 2 | Question: 11
Consider the grammar given below: $S \rightarrow x \ T \mid y \ Z$ $Z \rightarrow x \mid x \ S \mid y \ Z \ Z$ $T \rightarrow y \mid y \ S \mid y \ T \ T$ Consider the following strings: $xxyyx$ $xxyyxy$ $xyxy$ ... Which of the above strings are generated by the given grammar? i, iv and iii ii, iii and iv ii, v and iv iii, iv and v
Consider the grammar given below:$S \rightarrow x \ T \mid y \ Z$$Z \rightarrow x \mid x \ S \mid y \ Z \ Z$$T \rightarrow y \mid y \ S \mid y \ T \ T$Consider the foll...
Bikram
362
views
Bikram
asked
Aug 12, 2017
Theory of Computation
tbb-toc-2
theory-of-computation
grammar
+
–
2
votes
1
answer
221
LR(zero)
Options are as:- (a) i and ii (b) i and iii (c) ii and iii (d) none of the above
Options are as:-(a) i and ii (b) i and iii(c) ii and iii (d) none of the above
learner_geek
532
views
learner_geek
asked
Aug 6, 2017
Compiler Design
theory-of-computation
grammar
compiler-design
context-free-language
ace-test-series
+
–
7
votes
6
answers
222
LL(1) Grammar
Which of the following statements is true? Every LL(1) grammar is LALR(1). Every LL(1) grammar is CLR(1). AS I think 2nd is True and 1st is False if I am wrong please let me correct.
Which of the following statements is true?Every LL(1) grammar is LALR(1).Every LL(1) grammar is CLR(1). AS I think 2nd is True and 1st is False if I am wrong please let ...
learner_geek
11.7k
views
learner_geek
asked
Aug 5, 2017
Compiler Design
compiler-design
grammar
ll-parser
parsing
+
–
1
votes
1
answer
223
LR(0) OR NOT???
If i am wrong let me correct.
If i am wrong let me correct.
learner_geek
512
views
learner_geek
asked
Aug 5, 2017
Compiler Design
compiler-design
lr-parser
grammar
theory-of-computation
context-free-language
+
–
0
votes
1
answer
224
LEFT RECURSION
To avoid left recursion can we do like this. I think this is incorrect way to do
To avoid left recursion can we do like this. I think this is incorrect way to do
learner_geek
1.3k
views
learner_geek
asked
Aug 5, 2017
Compiler Design
compiler-design
grammar
parsing
left-recursion
ace-booklet
+
–
1
votes
1
answer
225
LL one
Given answer is yes but i think should not be LL(1)
Given answer is yes but i think should not be LL(1)
learner_geek
312
views
learner_geek
asked
Aug 5, 2017
Compiler Design
compiler-design
grammar
ll-parser
+
–
1
votes
0
answers
226
Self doubt
Please provide suggestions for following points- Can Type-0 grammar be written for a Regular Language which is not Type 1,2 or 3. Can any Type 0 grammar be checked if it can be reduced to Type 1,2,3 grammar. how to check if a Type 0 grammar is decidable /undecidable How to design a turing machine by looking at Type 0 grammar
Please provide suggestions for following points-Can Type-0 grammar be written for a Regular Language which is not Type 1,2 or 3.Can any Type 0 grammar be checked if it ca...
Durgesh Singh
281
views
Durgesh Singh
asked
Aug 1, 2017
Theory of Computation
theory-of-computation
grammar
turing-machine
decidability
+
–
1
votes
1
answer
227
Grammar
reena_kandari
311
views
reena_kandari
asked
Jul 31, 2017
Theory of Computation
theory-of-computation
grammar
+
–
2
votes
1
answer
228
GATE 2017 Mock
Consider the Following regular expressions r1 = 1(0 + 1)* r2 = 1(1 + 0)+ r3 = 11*0 What is the relation between the languages generated by the regular expressions above ? a) L (r1) ⊆ L (r2) and L(r1) ⊆ L(r3) b) L (r1) ⊇ L (r2) and L(r2) ⊇ L(r3) c) L (r1) ⊇ L (r2) and L(r2) ⊆ L(r3) d) L (r1) ⊇ L (r3) and L(r2) ⊆ L(r1) Also Please tell explain the value of 1(1 + 0)+ .
Consider the Following regular expressionsr1 = 1(0 + 1)*r2 = 1(1 + 0)+r3 = 11*0What is the relation between the languages generated by the regular expressions above ?a) L...
Utkarsh Anand
2.0k
views
Utkarsh Anand
asked
Jul 26, 2017
Theory of Computation
theory-of-computation
finite-automata
regular-expression
grammar
+
–
1
votes
0
answers
229
LL grammar and DCFL
True or False , 1) Is every LL grammar have one to one correspondance with DCFL? Please explain with examples.
True or False ,1) Is every LL grammar have one to one correspondance with DCFL?Please explain with examples.
AnilGoudar
284
views
AnilGoudar
asked
Jul 17, 2017
Compiler Design
compiler-design
grammar
ll-parser
+
–
2
votes
1
answer
230
Raghunath Tiwari(NPTEL NOC Chomsky Normal Form)
S->ASB A->aASA | a | ϵ B->SbS | A | bb Convert this grammar into Chomsky Normal Form
S->ASBA->aASA | a | ϵB->SbS | A | bbConvert this grammar into Chomsky Normal Form
Veeplob Singh
830
views
Veeplob Singh
asked
Jul 3, 2017
Theory of Computation
theory-of-computation
context-free-grammar
conjunctive-normal-form
grammar
+
–
1
votes
2
answers
231
theory of computation
contruct the PDA for CFG L={set of balanced paranthesis}
contruct the PDA for CFG L={set of balanced paranthesis}
akankshadewangan24
684
views
akankshadewangan24
asked
Jun 26, 2017
Theory of Computation
finite-automata
regular-expression
grammar
+
–
1
votes
2
answers
232
theory of computtion
find regular expression of 1. S-> 01A/10B A->0B/1 B->1A/0 and 2. A->A00 /A1/0 3. S->baS/aA A->bbA/bb
find regular expression of1.S- 01A/10BA->0B/1B->1A/0and2.A->A00 /A1/0 3.S->baS/aAA->bbA/bb
akankshadewangan24
493
views
akankshadewangan24
asked
Jun 25, 2017
Theory of Computation
regular-expression
grammar
+
–
4
votes
2
answers
233
LL(1) Grammer
S -> (L) | a L -> L . S | S Question: Make necessary changes to make it suitable for LL(1) parsing and Construct FIRST and FOLLOW sets.
S - (L) | aL - L . S | SQuestion: Make necessary changes to make it suitable for LL(1) parsing and Construct FIRST and FOLLOW sets.
kyrierose
28.6k
views
kyrierose
asked
Jun 13, 2017
Compiler Design
compiler-design
grammar
ll-parser
parsing
+
–
0
votes
0
answers
234
Doubt
How Arithmetic expressions with matched pairs of parentheses is X→XbX∣XcX∣dXf∣g ???
HowArithmetic expressions with matched pairs of parentheses isX→XbX∣XcX∣dXf∣g ???
Angkit
264
views
Angkit
asked
Jun 13, 2017
Theory of Computation
theory-of-computation
grammar
+
–
0
votes
1
answer
235
LL(1) Grammar
The following grammar is LL(1) ? S -> aA/∈ A-> abS/∈ We know that, if a grammar has to be LL(1), there should be not be multiple entries for any column of any row. Alternatively we can check like, First(aA) and Follow(S)(This is for ∈ production ... = { a }, Follow(A) = { dollar Sign } . here also no common terminals. Is My understanding correct. Please correct me if iam wrong.
The following grammar is LL(1) ?S - aA/∈A- abS/∈We know that, if a grammar has to be LL(1), there should be not be multiple entries for any column of any row.Alternat...
AnilGoudar
1.2k
views
AnilGoudar
asked
May 3, 2017
Compiler Design
compiler-design
ll-parser
grammar
+
–
2
votes
2
answers
236
Peter Linz 5.1
I need two proves, i am stuckhere 1.Show that every S-grammar is Unambiguous 2.Show that a RegEx can never be Inherently Ambiguous so what to use here? Induction/Contradiction
I need two proves, i am stuckhere1.Show that every S-grammar is Unambiguous2.Show that a RegEx can never be Inherently Ambiguousso what to use here? Induction/Contradicti...
No_name
2.4k
views
No_name
asked
Apr 7, 2017
Theory of Computation
theory-of-computation
context-free-language
regular-expression
regular-language
grammar
+
–
0
votes
1
answer
237
theory of computation
Vicky rix
472
views
Vicky rix
asked
Apr 5, 2017
Theory of Computation
theory-of-computation
grammar
+
–
0
votes
1
answer
238
theory of computation
Eliminate all Null -productions from S $\rightarrow$ AaB | aaB, A $\rightarrow$ Null B $\rightarrow$ bbA |Null.
Eliminate all Null -productions fromS $\rightarrow$ AaB | aaB,A $\rightarrow$ NullB $\rightarrow$ bbA |Null.
Vicky rix
360
views
Vicky rix
asked
Apr 5, 2017
Theory of Computation
theory-of-computation
grammar
+
–
0
votes
2
answers
239
theory of computation
I guess the Language , L = { } ...please verify ...
I guess the Language , L = { } ...please verify ...
Vicky rix
364
views
Vicky rix
asked
Apr 5, 2017
Theory of Computation
theory-of-computation
grammar
+
–
0
votes
1
answer
240
theory of computation
Find dfa's for the following languages on Σ = {a,b}. L= {w: na(w) mod 3 >nb(w) mod 3}. L= {w :(na(w) – nb(w)) mod 3 > 0}.
Find dfa's for the following languages on Σ = {a,b}.L= {w: na(w) mod 3 >nb(w) mod 3}.L= {w :(na(w) – nb(w)) mod 3 0}.
Vicky rix
1.4k
views
Vicky rix
asked
Apr 2, 2017
Theory of Computation
theory-of-computation
finite-automata
regular-expression
grammar
+
–
Page:
« prev
1
...
3
4
5
6
7
8
9
10
11
12
13
...
15
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register