Professional Documents
Culture Documents
Fall 2014 - CS402 - 1
Fall 2014 - CS402 - 1
Assignment # 1(Graded)
Total marks = 20
Deadline Date = Nov 17, 2014
1) You should concern recommended books to clarify your concepts as handouts are not
sufficient.
2) You are supposed to submit your assignment in .doc format. Any other formats like scan
images, PDF, zip, rar, bmp etc will not be accepted.
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.
Q.1. Write a Regular Expression (RE) for the language of all strings defined over = {x, y, z}
which begins with z, x in the middle and ends with y. The minimum length of all strings must
be 4.
[Marks 6]
Q.2.
a) Make a transition table for RE in Q.1.
b) Draw a Finite Automaton (FA) for part(a)
[Marks 7+7]