Login
Register
Dark Mode
Brightness
Ambient Glow – Questions list
Register
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged grammar
0
0 votes
1
1 answer
649
649 views
Peter Linz Edition 4 Exercise 5.2 Question 1 (Page No. 144)
Find an s-grammar for $L (aaa^*b + b)$.
Naveen Kumar 3
649
views
asked
Apr 14, 2019
Theory of Computation
peter-linz
peter-linz-edition4
theory-of-computation
grammar
+
–
1
1 vote
1
1 answer
465
465 views
Peter Linz Edition 4 Exercise 1.2 Question 23 (Page No. 30)
Show that the grammars $S \rightarrow aSb|bSa|SS|a$and $S \rightarrow aSb|bSa|a$are not equivalent.
Naveen Kumar 3
465
views
asked
Mar 19, 2019
Theory of Computation
peter-linz
peter-linz-edition4
theory-of-computation
grammar
+
–
1
1 vote
1
answers
1 answer
571
571 views
Peter Linz Edition 4 Exercise 1.2 Question 22 (Page No. 30)
Show that the grammar $G$ =({$S$}, {$a, b$}$, S, P$), with productions $S \rightarrow SS|SSS|aSb|bSa|λ$ ,is equivalent to the grammar ...
Naveen Kumar 3
571
views
asked
Mar 19, 2019
Theory of Computation
peter-linz
peter-linz-edition4
theory-of-computation
grammar
+
–
1
1 vote
1
1 answer
1.1k
1.1k views
Peter Linz Edition 4 Exercise 1.2 Question 21 (Page No. 29)
Are the two grammars with respective productions $S \rightarrow aSb|ab|λ$,and $S \rightarrow aAb|ab$, $A \rightarrow aAb|λ$,equivalent? A...
Naveen Kumar 3
1.1k
views
asked
Mar 19, 2019
Theory of Computation
peter-linz
peter-linz-edition4
theory-of-computation
grammar
+
–
0
0 votes
0
0 answers
454
454 views
Peter Linz Edition 4 Exercise 1.2 Question 15 (Page No. 29)
Find grammars for the following languages on Σ = {a}.(a) L = {w : |w| mod 3 = 0}.(b) L = {w : |w| mod 3 0}.(c) L = {w : |w| mod 3 ≠ |w| mod 2}.(d) L = {w : |w| mod 3 ≥ |...
Naveen Kumar 3
454
views
asked
Mar 19, 2019
Theory of Computation
peter-linz
peter-linz-edition4
theory-of-computation
grammar
+
–
1
1 vote
1
1 answer
671
671 views
Peter Linz Edition 4 Exercise 1.2 Question 14 (Page No. 28)
Let $Σ$ = {$a, b$}. For each of the following languages, find a grammar that generates it.(a) $L_1$ = {$a^nb^m : n ≥ 0, m n$}.(b) $L_2$ = {$a^nb^{2n} : n ≥ 0$}.(c) $L_3$...
Naveen Kumar 3
671
views
asked
Mar 19, 2019
Theory of Computation
peter-linz
peter-linz-edition4
theory-of-computation
grammar
+
–
1
1 vote
1
1 answer
1.3k
1.3k views
Peter Linz Edition 4 Exercise 1.2 Question 13 (Page No. 28)
What language does the grammar with these productions generate?$S \rightarrow Aa$ ,$A \rightarrow B$ ,$B \rightarrow Aa$ .
Naveen Kumar 3
1.3k
views
asked
Mar 19, 2019
Theory of Computation
peter-linz
peter-linz-edition4
theory-of-computation
grammar
+
–
0
0 votes
2
2 answers
668
668 views
Peter Linz Edition 4 Exercise 1.2 Question 12 (Page No. 28)
Give a simple description of the language generated by the grammar with productions$S \rightarrow aA,$$A \rightarrow bS,$$S \rightarrow λ.$
Naveen Kumar 3
668
views
asked
Mar 19, 2019
Theory of Computation
peter-linz
peter-linz-edition4
theory-of-computation
grammar
+
–
0
0 votes
0
0 answers
652
652 views
Peter Linz Edition 4 Exercise 1.2 Question 11 (Page No. 28)
Find grammars for $Σ$ = {$a, b$} that generate the sets of(a) all strings with exactly one $a$.(b) all strings with at least one $a$.(c) all strings with no more than thr...
Naveen Kumar 3
652
views
asked
Mar 19, 2019
Theory of Computation
peter-linz
peter-linz-edition4
theory-of-computation
grammar
+
–
32
32 votes
5
answers
5 answers
26.5k
26.5k views
GATE CSE 2019 | Question: 43
Consider the augmented grammar given below:$S’ \rightarrow S$$S \rightarrow \langle L \rangle \mid id$$L \rightarrow L, S \mid S$Let $I_0 = \text{CLOSURE} (\{[S’ \rightar...
Arjun
26.5k
views
asked
Feb 7, 2019
Compiler Design
gatecse-2019
numerical-answers
compiler-design
grammar
two-marks
+
–
0
0 votes
1
1 answer
5.0k
5.0k views
how to check grammar is lr(1)?
consider the grammar G: S->A|B A->a|c B->b|c where {S,A,B} are non-terminals,{a,b,c} are terminals.Does LR(1) can parse all strings that are generated by gr...
abc1
5.0k
views
asked
Jan 26, 2019
Compiler Design
compiler-design
grammar
parsing
lr-parser
+
–
0
0 votes
1
1 answer
1.1k
1.1k views
ACE Test series Question on CFG
Shankar Kakde
1.1k
views
asked
Jan 24, 2019
Compiler Design
compiler-design
grammar
context-free-grammar
ace-test-series
+
–
0
0 votes
1
1 answer
924
924 views
ace-Pregate
naveen bhatt
924
views
asked
Jan 24, 2019
Compiler Design
compiler-design
grammar
syntax-directed-translation
ace-test-series
+
–
0
0 votes
1
answers
1 answer
739
739 views
Formal Languages
Consider the language defined as L = { $a^pb^qa^r$ | p = q or q = r} .L complement isRegularCFL but not regularCSL but not CSLDCFL
Abhipsa
739
views
asked
Jan 22, 2019
Theory of Computation
theory-of-computation
grammar
+
–
0
0 votes
0
0 answers
1.4k
1.4k views
MadeEasy Test Series 2019: Theory of computation - Grammer
Let L be the language of all strings on [0,1] ending with 1.Let X be the language generated by the grammar G.$S \rightarrow 0S/1A/ \epsilon $$A \rightarrow 1S/0A$Then $L ...
MiNiPanda
1.4k
views
asked
Jan 15, 2019
Theory of Computation
theory-of-computation
grammar
made-easy-test-series
+
–
0
0 votes
1
1 answer
1.0k
1.0k views
#compiler
amit166
1.0k
views
asked
Jan 9, 2019
Compiler Design
grammar
ace-test-series
+
–
0
0 votes
1
1 answer
1.3k
1.3k views
UGC NET CSE | December 2018 | Part 2 | Question: 35
Consider the following languages:$L_1 = \{ a^{n+m} b^n a^m \mid n, m \geq 0 \}$$L_2 = \{ a^{n+m} b^{n+m} a^{n+m} \mid n, m \geq 0\}$Which of the following is correct ?$Co...
Arjun
1.3k
views
asked
Jan 2, 2019
Theory of Computation
ugcnetcse-dec2018-paper2
theory-of-computation
context-free-language
grammar
+
–
0
0 votes
1
1 answer
1.3k
1.3k views
UGC NET CSE | December 2018 | Part 2 | Question: 40
The grammar $S \rightarrow (S) \mid SS \mid \epsilon$ is not suitable for predictive parsing because the grammar isRight recursiveLeft recursiveAmbiguousAn operator gramm...
Arjun
1.3k
views
asked
Jan 2, 2019
Compiler Design
ugcnetcse-dec2018-paper2
grammar
parsing
compiler-design
+
–
0
0 votes
1
1 answer
1.2k
1.2k views
Zeal Test Series 2019: Theory of Computation - Grammar
Consider the following statements.S1: An unambiguous left recursive grammar must be CLR(1).S2: A DCFG may or may not be LL(1).Select the correct option:1.Both S1 and S2 a...
Prince Sindhiya
1.2k
views
asked
Jan 2, 2019
Theory of Computation
zeal-test-series
theory-of-computation
grammar
zeal2019
+
–
1
1 vote
1
1 answer
1.5k
1.5k views
Non-Left recursive grammar of the below grammar.
Grammar. S → Aa | B A → Ac | Aad | bd | epsilon . .
susgir2
1.5k
views
asked
Jan 2, 2019
Compiler Design
compiler-design
left-recursion
grammar
parsing
recurrence-relation
+
–
1
1 vote
1
1 answer
2.4k
2.4k views
MadeEasy Test Series: Compiler Design - Grammar
Consider the following grammar G shown Below :S → abS | ScS | d | cThe number of terminals in follow set of non-terminal S is ___________________ Is “$” symbol considered...
vinay chauhan
2.4k
views
asked
Dec 30, 2018
Compiler Design
first-and-follow
made-easy-test-series
grammar
+
–
0
0 votes
1
1 answer
1.0k
1.0k views
context free grammer
consider following grammerS → aSb / aSbb / aSbbb / …..is language generated by above grammer is DCFL?
Rahul_Rathod_
1.0k
views
asked
Dec 24, 2018
Theory of Computation
grammar
context-free-language
dcfl
context-free-grammar
+
–
0
0 votes
2
answers
2 answers
647
647 views
MadeEasy Test Series: Theory Of Computation - Grammar
i thought that it is the language where both start and end symbols are same and i got 65 but the ans is 29
suneetha
647
views
asked
Dec 22, 2018
Theory of Computation
made-easy-test-series
theory-of-computation
grammar
+
–
0
0 votes
1
1 answer
1.1k
1.1k views
MadeEasy Test Series: Theory Of Computation - Grammar
what is the answer
suneetha
1.1k
views
asked
Dec 22, 2018
Theory of Computation
made-easy-test-series
theory-of-computation
grammar
+
–
0
0 votes
1
1 answer
1.2k
1.2k views
MadeEasy Test Series: Theory Of Computation - Grammar
G1: S-→ aSa| bSb|eG2:S → aaS|bbS| ethe shortest length strings which does not belongs to L(g1) but belongs to L(G2) is
suneetha
1.2k
views
asked
Dec 22, 2018
Theory of Computation
made-easy-test-series
theory-of-computation
grammar
+
–
1
1 vote
0
0 answers
1.0k
1.0k views
PARSER
An $\epsilon$ free LL(1) grammar is also a SLR(1) and hence LALR(1) and LR(1) too.Is this statement true ?
junaid ahmad
1.0k
views
asked
Dec 20, 2018
Compiler Design
compiler-design
parsing
grammar
+
–
0
0 votes
0
0 answers
910
910 views
Self doubt
I know that for a recursively enumerable language there exists an unrestricted grammar and we have formally defined unrestricted grammar. I want to know whether for every...
subho16
910
views
asked
Dec 20, 2018
Theory of Computation
theory-of-computation
turing-machine
grammar
recursive-and-recursively-enumerable-languages
+
–
0
0 votes
0
0 answers
416
416 views
Does operator grammar belong to both NCFL and DCFL?
Operator precedence parser even parses ambiguous grammars that are in form of operator grammars. I am inquiring about the nature of the ambiguous grammar. Could the langu...
2019_Aspirant
416
views
asked
Dec 9, 2018
Compiler Design
compiler-design
grammar
+
–
0
0 votes
0
0 answers
1.2k
1.2k views
Grammer
Which of the following problem is undecidable?A) membership problem for CFLB) membership problem for regular languageC)membership problem for cslD)membership problem for ...
Shivshankar
1.2k
views
asked
Dec 8, 2018
Theory of Computation
theory-of-computation
grammar
+
–
0
0 votes
0
0 answers
418
418 views
#gate #1997
A language L is a subset of Pascal with the following constructs:a). Expressions involving the operators ‘+’ and ‘<‘ onlyb). Assignment statementsc). ‘while’ statements a...
Gangani_Son
418
views
asked
Dec 4, 2018
Compiler Design
usergate1997
usermod
grammar
+
–
Page:
« prev
1
2
3
4
5
6
7
8
9
10
11
...
17
next »