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
Ullman(Second Edition) Exercise 4.2.3. Question (a) (page no-207)
aditi19
asked
in
Compiler Design
Mar 22, 2019
576
views
0
votes
0
votes
Design grammar for the language-
set of all strings of 0s and 1s such that every 0 is immediately followed by at least one 1
is this correct?
S->A | 01S
A->1AS | ε
theory-of-computation
compiler-design
context-free-grammar
aditi19
asked
in
Compiler Design
Mar 22, 2019
by
aditi19
576
views
answer
comment
Follow
share this
share
1 comment
by
Shaik Masthan
commented
Mar 22, 2019
reply
Follow
share this
seems to be correct !
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
admin
asked
in
Compiler Design
Aug 17, 2019
416
views
Ullman (Compiler Design) Edition 2 Exercise 4.2 Question 3 (Page No. 207)
Design grammars for the following languages: The set of all strings of $0's$ and $1's$ such that every $0$ is immediately followed by at least one $1$. The set of all strings of $0's$ and $1's$ that are palindromes; ... $1's$ of the form $xy$, where $x\neq y$ and $x$ and $y$ are of the same length.
admin
asked
in
Compiler Design
Aug 17, 2019
by
admin
416
views
ullman
compiler-design
context-free-grammar
descriptive
1
vote
1
vote
0
answers
2
admin
asked
in
Compiler Design
Aug 17, 2019
722
views
Ullman (Compiler Design) Edition 2 Exercise 4.2 Question 2 (Page No. 206 - 207)
Repeat Question $4.2.1$ for each of the following grammars and strings: $S\rightarrow 0S1\mid 01$ with string $000111$. $S\rightarrow +SS\mid \ast SS\mid a$ with string $+\ast aaa$ ... $bfactor\:\rightarrow\:not\:bfactor\mid (bexpr)\mid true\mid false$
admin
asked
in
Compiler Design
Aug 17, 2019
by
admin
722
views
ullman
compiler-design
context-free-grammar
parsing
ambiguous
descriptive
0
votes
0
votes
0
answers
3
admin
asked
in
Compiler Design
Aug 17, 2019
459
views
Ullman (Compiler Design) Edition 2 Exercise 4.2 Question 4 (Page No. 207 - 208)
There is an extended grammar notation in common use. In this notation, square and curly braces in production bodies are metasymbols (like $\rightarrow$ or $\mid$) with the following meanings: Square braces ... can be generated by a grammar with these extensions can be generated by a grammar without the extensions.
admin
asked
in
Compiler Design
Aug 17, 2019
by
admin
459
views
ullman
compiler-design
descriptive
0
votes
0
votes
0
answers
4
admin
asked
in
Compiler Design
Aug 20, 2019
204
views
Ullman (Compiler Design) Edition 2 Exercise 4.4 Question 10 (Page No. 233)
Show how, having filled in the table as in Question $4.4.9$, we can in $O(n)$ time recover a parse tree for $a_{1}a_{2}\cdot\cdot\cdot a_{n}$. Hint: modify the table so it records, for each nonterminal $A$ in each table entry $T_{ij}$, some pair of nonterminals in other table entries that justified putting $A$ in $T_{ij}$.
admin
asked
in
Compiler Design
Aug 20, 2019
by
admin
204
views
ullman
compiler-design
context-free-grammar
descriptive
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