We have been working very hard since 2009 to facilitate in your learning Read More. We can't keep up without your support. Donate Now.

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

How to Add New Discussion in Study Group ? Step By Step Guide Click Here.

CS606 – Compiler Construction

Assignment # 02
Fall 2019

 

Total marks = 20                                                                              

 

Deadline Date
2ndDecember, 2019

 

 

Please carefully read the following instructions before attempting assignment.

 

RULES FOR MARKING

It should be clear that your assignment would not get any credit if:

  • The assignment is submitted after the due date.
  • The submitted assignment does not open or file is corrupt.
  • Strict action will be taken if submitted solution is copied from any other student or from the internet.

 

You should consult the recommended books to clarify your concepts as handouts are not enough.

 

You are supposed to submit your assignment in .doc or docxformat.

Any other formats like scan images, PDF, zip, rar, ppt and bmp etc will not be accepted.

 

OBJECTIVE

Objective of this assignment is to increase the learning capabilities of the students about

·       Context-Free Grammars

·       Ambiguous Grammars

·       Unambiguous Grammars

 

 

 

NOTE

 

No assignment will be accepted after the due date via email in any case (whether it is the case of load shedding or internet malfunctioning etc.). Hence refrain from uploading assignment in the last hour of deadline. It is recommended to upload solution file at least two days before its closing date.

 

If you find any mistake or confusion in assignment (Question statement), please consult with your instructor before the deadline. After the deadline no queries will be entertained in this regard.

 

For any query, feel free to email at:

cs606@vu.edu.pk

 

 

Questions No 01                                                                                          10 marks

 

Consider the grammar given below:

NP ®Adj  NP

NP  ®NPConj  NP

NP ®Adj  N

NP ® N

Adj ® Young

Conj® and

N ® Boys | Girls

 

Where “Young, and, boys, Girls “ are terminals and “NP, N, Adj, Conj” are non-terminals.

Prove or disprove that the grammar given above is ambiguous.

 

Questions No 02                                                                                          10 marks

 

Consider the grammar given below:

 

               S  ®S + S | S / S | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19

 

Prove that above given grammar is ambiguous.

 

 

 

 

 

 

Good Luck!


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

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

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)


Views: 817

Replies to This Discussion

Solution require

Please Discuss here about this assignment.Thanks

Our main purpose here discussion not just Solution

Students having same subject can start discussion here to solve assignment, GDB & Quiz and can clear their concepts until solution is provided. 

 

P.S:    Please always try to add the discussion in proper format title like “CS101 Assignment / GDB No 01 Solution & Discussion Due Date: ___________”

Then copy Questions from assignment file and paste in Discussion.

 

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

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

Click Here to Search (Looking For something at vustudents.ning.com?)

Click Here to Join (Our facebook study Group)

please Share solution file

It's a idea solution. Amend it according to your id.

Attachments:

Thanx bhai jan 

Solution

CS606_Assignmnet_2_Solution_Fall_2019_vustudents.ning.com

below link 

CS606_Assignmnet_2_Solution_Fall_2019_vustudents.ning.com.docx

RSS

Latest Activity

Musawar Ahmed replied to +M.Tariq Malik's discussion STA301 GDB Fall 2020 Solution & Discussion in the group STA301 Statistics and Probability
16 minutes ago
Musawar Ahmed joined +M.Tariq Malik's group
16 minutes ago
Mr Ak updated their profile
18 minutes ago
Musawar Ahmed replied to +M.Tariq Malik's discussion CS610 Assignment No 01 Fall 2020 Solution & Discussion in the group CS610 Computer Network
28 minutes ago
Musawar Ahmed joined +M.Tariq Malik's group
28 minutes ago
Musawar Ahmed replied to +M.Tariq Malik's discussion CS605 Assignment No 01 Fall 2020 Solution & Discussion Due Date: 26-11-2020 in the group CS605 Software Engineering-II
32 minutes ago
Musawar Ahmed replied to +M.Tariq Malik's discussion CS605 Assignment No 01 Fall 2020 Solution & Discussion Due Date: 26-11-2020 in the group CS605 Software Engineering-II
33 minutes ago
Musawar Ahmed replied to +M.Tariq Malik's discussion CS605 Assignment No 01 Fall 2020 Solution & Discussion Due Date: 26-11-2020 in the group CS605 Software Engineering-II
33 minutes ago
Musawar Ahmed replied to +M.Tariq Malik's discussion CS605 Assignment No 01 Fall 2020 Solution & Discussion Due Date: 26-11-2020 in the group CS605 Software Engineering-II
34 minutes ago
Musawar Ahmed joined +M.Tariq Malik's group
34 minutes ago
Musawar Ahmed replied to +M.Tariq Malik's discussion CS408 Assignment No 01 Fall 2020 Solution / Discussion in the group CS408 Human Computer Interaction
40 minutes ago
Musawar Ahmed joined +M.Tariq Malik's group
44 minutes ago

Today Top Members 

Looking For Something? Search Here

© 2020   Created by +M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service

.