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


Looking For Something at vustudents.ning.com? Click Here to Search

Assignment No.  1
Semester: Fall 2018

CS606 – Compiler Construction

 

Total Marks: 20

 

Due Date:

November 30, 2018

Instructions

Please read the following instructions carefully before submitting assignment:

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

 

o        Assignment is submitted after due date.

o        Submitted assignment does not open or file is corrupt.

o        Assignment is copied (From internet/ to from students).

 

Software (s) Used to develop Assignment

-          MS Word

-          MS Paint

 

Assignment Submission Instructions

Microsoft Word file is required to submit on LMS.

 

Assignment

Marks 20

Task 1:

Given that binary number strings are read with the most significant bit first and may have leading zeroes, construct DFAs for each of the following languages:

 

a.      Binary number strings that represent numbers that are multiples of 4, e.g., 0, 100 and 10100. (5 Marks)

b.     Binary number strings that represent numbers that are multiples of 5, e.g., 0, 101, 10100 and 11001. (10 Marks)

          Hint: Make a state for each possible remainder after division by 5 and then add a state to           avoid accepting the empty string.

 

Task 2:

Construct a DFA that recognizes balanced sequences of parenthesis with a maximal nesting depth of 3, e.g., e, ()(), (()(())) or (()())()() but not (((()))) or (()(()(()))). (5 Marks)

 

 

 

 

 

 

Deadline:

Your assignment must be uploaded on or before the due date. We shall not accept your solution through email after the due date.

 


+ Click Here To Join also Our facebook study Group.


+ Prohibited Content On Site + Report a violation + Report an Issue


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


See Your Saved Posts Timeline

Views: 841

.

+ http://bit.ly/vucodes (Vu Study Groups By Subject Codes Wise)

Attachments:

Replies to This Discussion

koi to idea solution share kro kl last date ha

thanks Shabir 

Welcome!! It's a CS606 I mention CS602 by mistake

Agr ap m sy ksi ny CS602 solve kr li ho tu share kr dy please

Please Check in 602 group.

Email, cell no, facebook personal links, links sharing for promotion any kind of site & youtube direct link sharing is not allowed at the site.

 

Although If you want to share the youtube video, then paste the embed codes here of the youtube video. Otherwise your comment / reply will be deleted. As well as your account will be deleted from the site. Thanks for understanding.

Please Discuss here about this assignment.Thanks

Our main purpose here discussion not just Solution

We are here with you hands in hands to facilitate your learning and do not appreciate the idea of copying or replicating solutions. Read More>>

Discussed & be touched with this discussion. After discussion a perfect solution will come in a result at the end.

 

Note:-

For Important Helping Material related to this subject (Solved MCQs, Short Notes, Solved past Papers, E-Books, FAQ,Short Questions Answers & more). You must view all the featured Discussion in this subject group.

For how you can view all the Featured discussions click on the Back to Subject Name Discussions link below the title of this Discussion & then under featured Discussion corner click on the view all link.

Or visit this link 

Click Here For Detail.

&

.•°How to Download past papers from study groups°•.

 

Please Click on the below link to see…

.... How to Find Your Subject Study Group & Join .... 

 

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

 

RSS

Latest Activity

Study Corner For DigiSkills Students

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

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