Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged context-free-grammar
456
views
1
answers
4
votes
GO Classes Test Series 2024 | Mock GATE | Test 12 | Question: 16
Consider the following context-free grammar, with start symbol $S$ and terminals $a, ; , \lt , \gt .$ ... many different parse trees are there for the string $\lt \lt a \gt ;a\gt ?$
GO Classes
456
views
GO Classes
asked
Jan 21
Compiler Design
goclasses2024-mockgate-12
goclasses
numerical-answers
compiler-design
parsing
context-free-grammar
1-mark
+
–
750
views
2
answers
5
votes
GO Classes Test Series 2024 | Mock GATE | Test 11 | Question: 35
Which one of the following context-free grammars is unambiguous? (Note that $a, b, c,(,),+$ are terminals, $S, X, Y$ are nonterminals, and the start symbol in each case ... $S \rightarrow \epsilon|(S)| S$
GO Classes
750
views
GO Classes
asked
Jan 13
Theory of Computation
goclasses2024-mockgate-11
goclasses
theory-of-computation
context-free-grammar
multiple-selects
1-mark
+
–
427
views
2
answers
3
votes
TOC - Self Doubt
Can anyone explain $\overline{ww}$ is $CFL$ or $CSL$ And if $CFL$ can you write the equivalent $CFG$ for this ?
Jiten008
427
views
Jiten008
asked
Oct 24, 2023
Theory of Computation
pushdown-automata
theory-of-computation
self-doubt
regular-language
context-free-language
context-sensitive
turing-machine
closure-property
context-free-grammar
+
–
415
views
2
answers
1
votes
Unacademy Compiler Design Workbook
Consider the following statements:(A) LL (k) grammars have one to one correspondence with DCFLs.(B) LR (k) grammars have one to one correspondence with CFLs. A is true but B is falseA is false but B is trueBoth are FalseBoth are True
lovish_bhatia
415
views
lovish_bhatia
asked
Sep 12, 2023
Compiler Design
compiler-design
syntax-directed-translation
lexical-analysis
context-free-grammar
context-free-language
+
–
600
views
1
answers
0
votes
Context Free Languages
Is the following language CFL :{ ww | w in (a+b)* and |w| <1000 }
practicalmetal
600
views
practicalmetal
asked
Mar 20, 2023
Theory of Computation
context-free-language
theory-of-computation
context-free-grammar
pushdown-automata
+
–
550
views
1
answers
0
votes
Context Free Languages
Is the following language context free:The set of all strings with number of a’s equal to number of b’s and the sum of a’s and b’s to be divisible by 3.
practicalmetal
550
views
practicalmetal
asked
Mar 15, 2023
Theory of Computation
context-free-language
theory-of-computation
context-free-grammar
pushdown-automata
+
–
296
views
0
answers
0
votes
derive a language from a grammar
{M ∈ {a,b}∗ | M contains at least three bs} {N ∈ {a,b}∗ | N has an odd length and a is in the middle always}
moe12leb
296
views
moe12leb
asked
Jan 21, 2023
Theory of Computation
theory-of-computation
regular-language
context-free-grammar
+
–
294
views
1
answers
0
votes
context free grammar
S→ aS | bS | epsilonwhat is the language generated by this grammar ?
moe12leb
294
views
moe12leb
asked
Jan 21, 2023
Theory of Computation
theory-of-computation
context-free-grammar
+
–
302
views
2
answers
0
votes
context free grammar
what is the langauge generated by this grammar ?S-->aS | aSbS | ε what is the language
moe12leb
302
views
moe12leb
asked
Jan 21, 2023
Theory of Computation
theory-of-computation
context-free-language
context-free-grammar
+
–
221
views
0
answers
0
votes
Context Free Languages(CFG) Push Down Anutomata(PDA)
PDA for $a^i b^j | i \neq 2j+1$ ?
jaisyking
221
views
jaisyking
asked
Jan 12, 2023
Theory of Computation
theory-of-computation
context-free-grammar
pushdown-automata
context-free-language
+
–
530
views
1
answers
0
votes
Push Down Automation | Parsing | Input Buffer and Stack
Consider a situation, where the input buffer is still having elements, and our PDA has reached final state. Given that for next input element the final ... if empty stack acceptance is allowed in the given PDASomething else, I can explain
Souvik33
530
views
Souvik33
asked
Dec 20, 2022
Compiler Design
theory-of-computation
pushdown-automata
context-free-grammar
+
–
299
views
0
answers
1
votes
DRDO CSE 2022 Paper 2 | Question: 11
A context-free grammar is in Chomsky Normal Form if every rule is of the form\[\begin{array}{l}A \longrightarrow B C \\A \longrightarrow a\end{array}\]where ... A \longrightarrow B \mid S \\B \longrightarrow b \mid \varepsilon\end{array}\]
admin
299
views
admin
asked
Dec 15, 2022
Theory of Computation
drdocse-2022-paper2
theory-of-computation
context-free-grammar
descriptive
7-marks
+
–
236
views
0
answers
0
votes
Context Free Grammar
Find context-free grammars for the following languageL = { w : na(w) = 2nb(w); where w belongs {a, b}*}
moe12leb
236
views
moe12leb
asked
Nov 28, 2022
Theory of Computation
theory-of-computation
context-free-grammar
+
–
376
views
1
answers
0
votes
Context Free Grammar
Find context-free grammars for the following languageThe complement of the language L = belongs {a^n, b^n}
moe12leb
376
views
moe12leb
asked
Nov 28, 2022
Theory of Computation
theory-of-computation
context-free-grammar
+
–
358
views
1
answers
0
votes
#self_doubt#CFG
Are these two grammars equal?1->-------------------S->X|epsilonX->BBX|epsilonB->a|b2->------------S->AAS|epsilonA->a|b
Dknights
358
views
Dknights
asked
Nov 10, 2022
Theory of Computation
theory-of-computation
context-free-grammar
+
–
637
views
0
answers
0
votes
Construct unambiguous context-free grammars for each of the following languages. In each case show that your grammar is correct. Arithmetic expressions in postfix notation. Left-associative lists of identifiers separated by commas. Right-associative lists of identifiers separated by commas. Arithmetic expressions of integers and identifiers with the four binary operators +, -, *, /
Shongkor
637
views
Shongkor
asked
Nov 4, 2022
Compiler Design
compiler-design
context-free-grammar
+
–
Page:
1
2
3
4
5
6
...
12
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register