Login
Register
@
Dark Mode
Profile
Edit my Profile
Messages
My favorites
Register
Activity
Q&A
Questions
Unanswered
Tags
Subjects
Users
Ask
Previous Years
Blogs
New Blog
Exams
Dark Mode
Grammar Simplification
Rahul Jain25
asked
in
Theory of Computation
Oct 9, 2016
retagged
Jul 4, 2017
by
Arjun
592
views
0
votes
0
votes
theory-of-computation
grammar
context-free-language
Rahul Jain25
asked
in
Theory of Computation
Oct 9, 2016
retagged
Jul 4, 2017
by
Arjun
by
Rahul Jain25
592
views
answer
comment
Follow
share this
share
4 Comments
Show 2 previous comments
by
Prashant.
commented
Oct 9, 2016
reply
Follow
share this
ya B is also be removed.
0
0
by
Rahul Jain25
commented
Oct 9, 2016
reply
Follow
share this
@Anirudh here S has B in its rule should S also be removed???bcoz S is also not terminating, then will S be removed or its rule will be changed, and if we change what will that rule.
0
0
by
Shubhanshu
commented
Oct 13, 2017
reply
Follow
share this
@Rahul Jain25
@Prashant.
we will remove D, C, B
After all these the only production of S will also be removed as it contain an useless varaiable B. so I think answer should be 0.
crct me if I am wrong.
0
0
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
0
Answers
← Previous
Next →
← Previous in category
Next in category →
Related questions
0
votes
0
votes
0
answers
1
Shubhanshu
asked
in
Compiler Design
Aug 29, 2017
3,126
views
Grammar Simplification
Consider the following grammar : S-> Aa / B B -> a / bC C -> a / epsilon The number of productions in simplified CFG is_________. I am getting 3. As S -> Aa / a / b.
Shubhanshu
asked
in
Compiler Design
Aug 29, 2017
by
Shubhanshu
3.1k
views
theory-of-computation
context-free-language
simplification
1
vote
1
vote
2
answers
2
tarun_svbk
asked
in
Theory of Computation
Feb 24, 2018
2,042
views
Simple Grammar
Consider Grammar G with the following characteristic- $A → ax$, where $A ∈ V$, $a ∈ T$, $x ∈ V^*$, and any pair $( A, a )$ occurs at most once in $P$. For example, $S → aA \mid aB...,$ is not a grammar of type $G$ because the pair $(S,a)$ occur in two productions. ... string w belonging to $L(G)$ ? $\mid w \mid^3$ $\mid w \mid$ $2^{\mid w \mid}$ Not a function of $\mid w \mid$ alone.
tarun_svbk
asked
in
Theory of Computation
Feb 24, 2018
by
tarun_svbk
2.0k
views
theory-of-computation
context-free-language
peter-linz
grammar
context-free-grammar
1
vote
1
vote
1
answer
3
monanshi
asked
in
Theory of Computation
Oct 25, 2015
337
views
Is the grammar S$\rightarrow$ϵ empty?
Is the grammar S$\rightarrow$ϵ empty?
monanshi
asked
in
Theory of Computation
Oct 25, 2015
by
monanshi
337
views
theory-of-computation
grammar
context-free-language
0
votes
0
votes
1
answer
4
admin
asked
in
Theory of Computation
May 1, 2019
563
views
Michael Sipser Edition 3 Exercise 2 Question 9 (Page No. 155)
Give a context-free grammar that generates the language $A=\{a^{i}b^{j}c^{k}\mid i=j$ $\text{or}$ $ j=k$ $\text{where}$ $ i,j,k\geq 0\}.$ Is your grammar ambiguous$?$ Why or why not$?$
admin
asked
in
Theory of Computation
May 1, 2019
by
admin
563
views
michael-sipser
theory-of-computation
context-free-language
ambiguous
grammar
Subscribe to GATE CSE 2024 Test Series
Subscribe to GO Classes for GATE CSE 2024
Quick search syntax
tags
tag:apple
author
user:martin
title
title:apple
content
content:apple
exclude
-tag:apple
force match
+apple
views
views:100
score
score:10
answers
answers:2
is accepted
isaccepted:true
is closed
isclosed:true
Recent Posts
Post GATE 2024 Guidance [Counseling tips and resources]
GATE CSE 2024 Result Responses
[Project Contest] Pytorch backend support for MLCommons Cpp Inference implementation
Participating in MLCommons Inference v4.0 submission (deadline is February 23 12pm IST)
IIITH PGEE 2024 Test Series by GO Classes
Subjects
All categories
General Aptitude
(3.5k)
Engineering Mathematics
(10.4k)
Digital Logic
(3.6k)
Programming and DS
(6.2k)
Algorithms
(4.8k)
Theory of Computation
(6.9k)
Compiler Design
(2.5k)
Operating System
(5.2k)
Databases
(4.8k)
CO and Architecture
(4.0k)
Computer Networks
(4.9k)
Artificial Intelligence
(79)
Machine Learning
(48)
Data Mining and Warehousing
(25)
Non GATE
(1.4k)
Others
(2.7k)
Admissions
(684)
Exam Queries
(1.6k)
Tier 1 Placement Questions
(17)
Job Queries
(80)
Projects
(11)
Unknown Category
(870)
64.3k
questions
77.9k
answers
244k
comments
80.0k
users
Recent Blog Comments
category ?
Hi @Arjun sir, I have obtained a score of 591 in ...
download here
Can you please tell about IIT-H mtech CSE self...
Please add your admission queries here:...
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy