CS402 Theory of Automata

Assignment 1

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 concern recommended books to clarify your concepts as handouts are not sufficient.
  • You are supposed to Submit Your Coursework 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.

  1. a) Make a transition table for RE in Q.1.
  2. b) Draw a Finite Automaton (FA) for part(a)

[Marks 7+7]