Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged context-free-grammar
293
views
1
answers
1
votes
PhD Qualifier Examination, Paper I
Give a context-free grammar for the set of all strings over the alphabet {a, b} with exactly twice as many a’s as b’s. Explain the working of the grammar by characterizing the strings generated by each non-terminal.
rsansiya111
293
views
rsansiya111
asked
Sep 17, 2022
Theory of Computation
theory-of-computation
context-free-grammar
+
–
638
views
0
answers
0
votes
PDA | TOC | Practice Question
Identify the type of the given language and draw the corresponding automata for the language.$L=\left \{a^{i}b^{j}c^{k} \space\ | \space\ j=max(i,k) \right \}$A] RegularB] DCFLC] CFL but not DCFLD] Non-CFLPlease describe your selection.
anupamsworld
638
views
anupamsworld
asked
Sep 2, 2022
Theory of Computation
regular-grammar
context-free-grammar
npda
dpda
theory-of-computation
+
–
318
views
1
answers
0
votes
Construct a grammar which generates all odd integers up to 999
clendaya
318
views
clendaya
asked
Aug 11, 2022
Theory of Computation
context-free-grammar
+
–
980
views
2
answers
0
votes
made easy test series - parsing - context-free grammar
Consider the following context-free grammar:Find the number of unique productions in {Goto (A → D.BC, B) U Goto (A → .DBC, D)}
atulcse
980
views
atulcse
asked
Jan 16, 2022
Compiler Design
context-free-language
context-free-grammar
parsing
made-easy-test-series
+
–
650
views
2
answers
3
votes
#Gate CS Applied Course Mock Test
Is this Language a CFL?If yes, Can you please explain the implementation.
Rajesh Reddy
650
views
Rajesh Reddy
asked
Jan 3, 2022
Theory of Computation
theory-of-computation
context-free-language
context-free-grammar
+
–
686
views
1
answers
1
votes
Test series Made easy
How to solve this ? Please help.
raja11sep
686
views
raja11sep
asked
Dec 31, 2021
Compiler Design
compiler-design
grammar
context-free-grammar
ll-parser
descriptive
made-easy-test-series
+
–
259
views
1
answers
1
votes
made easy test 1 2022
how option 2 is correct becz regular lang. dosnt accept comparision can anyone explain?
jugnu1337
259
views
jugnu1337
asked
Dec 16, 2021
Theory of Computation
context-free-grammar
+
–
5.1k
views
1
answers
2
votes
Greibach Normal Form
Convert the following grammar into Greibach Normal Form.E-> E + T | TT-> T*F | FF->(E) | a I am unable to process this type of grammer into GNF, Can someone please provide a detailed explaination?
hustlerrr
5.1k
views
hustlerrr
asked
Nov 17, 2021
Theory of Computation
theory-of-computation
context-free-grammar
gnf
+
–
393
views
1
answers
3
votes
Applied Test Series
How to approach with such questions. Do we have to generate strings to validate the property of the grammars ?
LRU
393
views
LRU
asked
Oct 3, 2021
Theory of Computation
test-series
theory-of-computation
context-free-grammar
+
–
288
views
2
answers
1
votes
can someone share the approach for the following que
14.Show that the grammar S → aSb |SS| e is ambiguous, but that the language denoted by it is not.Can someone share the approach for second part.
mk_007
288
views
mk_007
asked
Oct 2, 2021
Theory of Computation
context-free-language
context-free-grammar
ambiguous
+
–
719
views
1
answers
2
votes
TIFR CSE 2021 | Part B | Question: 9
Let $L$ be a context-free language generated by the context-free grammar $G = (V, \Sigma, R, S)$ where $V$ is the finite set of variables, $\Sigma$ the finite set of ... ast }${L}'=\left \{ xx \mid x \in L \right \}$None of the above
soujanyareddy13
719
views
soujanyareddy13
asked
Mar 25, 2021
Theory of Computation
tifr2021
theory-of-computation
context-free-grammar
+
–
3.2k
views
1
answers
0
votes
NIELIT 2017 OCT Scientific Assistant A (CS) - Section B: 10
Consider an $\varepsilon$-tree CFG. If for every pair of productions $A\rightarrow u$ and $A\rightarrow v$If $\text{FIRST(u)} \cap \text{FIRST(v)}$ is empty then the CFG ... $(A)$ and $(B)$None of the above
admin
3.2k
views
admin
asked
Apr 1, 2020
Compiler Design
nielit2017oct-assistanta-cs
compiler-design
context-free-grammar
first-and-follow
+
–
1.5k
views
1
answers
0
votes
NIELIT 2016 MAR Scientist B - Section C: 29
The CFG $S \to aS\mid bS\mid a\mid b$ is equivalent to $(a+b)$(a+b)(a+b)^*$(a+b)(a+b)$all of these
admin
1.5k
views
admin
asked
Mar 31, 2020
Theory of Computation
nielit2016mar-scientistb
theory-of-computation
context-free-grammar
+
–
1.2k
views
1
answers
0
votes
NIELIT 2017 DEC Scientist B - Section B: 7
Let $G$ be a grammar in CFG and let $W_1,W_2\in L(G)$ such that $\mid W_1\mid=\mid W_2\mid$ then which of the following statements is true?Any ... .Some derivation of $W_1$ may be shorter than the derivation of $W_2$None of the options
admin
1.2k
views
admin
asked
Mar 30, 2020
Theory of Computation
nielit2017dec-scientistb
theory-of-computation
context-free-grammar
+
–
1.3k
views
1
answers
0
votes
NIELIT 2017 DEC Scientist B - Section B: 26
The grammar $S\rightarrow aSb\mid bSa\mid SS\mid \varepsilon $ is:Unambiguous CFGAmbiguous CFGNot a CFGDeterministic CFG
admin
1.3k
views
admin
asked
Mar 30, 2020
Compiler Design
nielit2017dec-scientistb
compiler-design
compilations
context-free-grammar
ambiguous
+
–
492
views
2
answers
0
votes
UGC NET CSE | December 2005 | Part 2 | Question: 4
Which sentence can be generated by $S\rightarrow d/bA, A\rightarrow d/ccA$ :$\text{bccddd}$\text{aabccd}$\text{ababccd}$\text{abbbd}$
go_editor
492
views
go_editor
asked
Mar 27, 2020
Theory of Computation
ugcnetcse-dec2005-paper2
theory-of-computation
context-free-grammar
grammar
+
–
1.6k
views
2
answers
0
votes
UGC NET CSE | January 2017 | Part 3 | Question: 22
Let $G= (V,T,S,P)$ be a context-free grammer such that every one of its productions is of the form $A\rightarrow v$, with $\mid v \mid=K> 1$. The derivation tree for any ...
go_editor
1.6k
views
go_editor
asked
Mar 24, 2020
Theory of Computation
ugcnetcse-jan2017-paper3
context-free-grammar
theory-of-computation
+
–
536
views
1
answers
0
votes
TIFR CSE 2020 | Part B | Question: 6
Consider the context-free grammar below ($\epsilon$ denotes the empty string, alphabet is $\{a,b\}$):$S\rightarrow \epsilon \mid aSb \mid bSa \mid SS.$What ... $a$ and $b$
admin
536
views
admin
asked
Feb 10, 2020
Theory of Computation
tifr2020
theory-of-computation
context-free-grammar
+
–
Page:
« prev
1
2
3
4
5
6
7
...
12
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register