We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

www.vustudents.ning.com

 www.bit.ly/vucodes + Link For Assignments, GDBs & Online Quizzes Solution www.bit.ly/papersvu + Link For Past Papers, Solved MCQs, Short Notes & More

Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion

# CS606 Compiler Construction Assignment No 1 Solution & Discussion Due Date:13-11-2012

Question No 1: Marks 10
Let CFG be G = (Vn, Vt, S, P) where Vn = {<goal>, <expression>, <term>, <factor>}, Vt = {1, 2,
3, x, y, z, -, +}, S = <goal> and Productions(P) are;
<goal> <expression>
<expression> <term> / <expression> + <term>
<term> <factor> / <term> - <factor>
<factor> 1 / 2 / 3 / x / y / z
Considering the above productions of a CFG, you are required to do the following tasks:
a. Derive the expression “x + 2 - y”. [5 Marks]
b. Construct a parse tree for the expression “x + 2 - y”. [5 Marks]

Question No 2: Marks 10
Construct Nondeterministic finite automata (NFA) for regular expression (a | b)* using
Thompson’s Construction Algorithm. Show the sequence of moves made by each in processing
the input string “ababbab”.

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?

Views: 901

.

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

Attachments:

### Replies to This Discussion

Our main purpose here discussion not just Solution

Abdul Waheed gud keep it up

Note @ All: You don’t need to go any other site for this assignment/GDB/Online Quiz solution, Because All discussed data of our members in this discussion are going from here to other sites. You can judge this at other sites yourself. So don’t waste your precious time with different links.

how will u accept the string "ab" through this RE.?

why are there blank transition in it?

Please anyone help us in this assignment.

plz tel where are answers in handouts

handouts main nae hain

For Question no.1 part b, Please go through the handouts. Lecture Number 12.

wo b handouts mein hi ha. :)

will some one share its solution??

## Latest Activity

22 minutes ago
jawairia sajid liked ہاشم's discussion CS201 Assignment 1 Solution Spring 2020
1 hour ago
jawairia sajid liked Usman Mughal's discussion solution of assignment 1_201
1 hour ago
1 hour ago
jawairia sajid joined +M.Tariq Malik's group

### MTH202 Discrete Mathematics

2 hours ago
jawairia sajid joined +M.Tariq Malik's group

### MTH301 Calculus II

2 hours ago
jawairia sajid joined +M.Tariq Malik's group

2 hours ago
jawairia sajid joined +M.Tariq Malik's group

### ENG201 Business and Technical English Writing

2 hours ago
Eman Chaudhary, Muhammad Wasif, Syed Ilyas Kazmi and 5 more joined Virtual University of Pakistan
2 hours ago
jawairia sajid, ♥S♥u♥p♥e♥r♥ ♥S♥t♥a♥r ♥ ❤️ and zaini joined +M.Tariq Malik's group

### CS201 Introduction to Programming

2 hours ago
jawairia sajid and Soldierr are now friends
2 hours ago
2 hours ago

1

2

3