CS201 MID TERM SOLVED MCQs || PAST PAPERS || GROUP-1 || INTRODUCTION TO PROGRAMMING || VuTech Visit Website For More Solutions www.vutechofficial.blogspot.com …
CS402 ASSIGNMENT NO. 1 FALL 2022 || 100% RIGHT SOLUTION || THEORY OF AUTOMATA || BY VuTech
SEND WHATSAPP OR E-MAIL FOR ANY QUERY
0325-6644800
kamranhameedvu@gmail.com
Visit Website For More Solutions
www.vutechofficial.blogspot.com
Please carefully read the following instructions before attempting the 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 the file is corrupt.
Strict action will be taken if the submitted solution is copied from any other student or the internet.
You should be concerned about the recommended books to clarify your concepts as handouts are insufficient.
You are supposed to submit your assignment in Doc or Docxformat.
Any other formats like Scan Images, PDF, Zip, Rar, Ppt, and Bmp will not be accepted.
Topic Covered:
The objective of this assignment is to assess the understanding of students about:
·Regular Expressions (RE)
·Finite Automata (FA)
·Transition Graph (TG)
·Generalized Transition Graph (GTG)
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 assignments in the last hour of the deadline. It is recommended to upload the solution file at least two days before its closing date.
If you people find any mistake or confusion in the 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 me at:
cs402@vu.edu.pk
Questions No 01 Marks: (5+5+4)=14
Consider
a language ‘L’ defined over ∑= {a, b, c} such that it contains all words in
which ‘b’occurs exactly once in a string.
a) Construct
a Finite Automata (FA) for the language ‘L’.
Answer:
b) Construct
a Transition Graph for the language ‘L’.
Answer:
c) Construct
a Generalized Transition Graph for the language ‘L’.
Answer:
Question No 2:
Marks:(2+2+2)=6
Provide
the regular expression RE defined over ∑= {0,1} for the strings
belonging to the following languages:
a) All
strings having zeros in multiples of three.
Answer:
((1)*0 (1)*0 (1)*0 (1)*)*
b) All
strings that do not start with double zero.
Answer:
(0+1)1 ( 0+1)*
c) All
strings starting with zero have no consecutive 1’s in them.
Answer:
(0(1)0 (1)0(1))*
KINDLY, DON’T COPY PASTE
SUBSCRIBE, SHARE, LIKE AND COMMENTS FOR MORE UPDATES
We provide Virtual University of Pakistan Study Materials such as Solution of Assignments, GDBs, Mid Term Solved Papers, Final Term Solved Papers, Mid Term Solved MCQs, and Final Term Solved MCQs. We also provide regular Semester Quizzes, Updated Handouts, and Short Questions and Answers. We help you with your research and many other educational-related topics, as far as we know. Furthermore, Share your problem with us and Please feel free to ask any related questions.