Theory of Automata – CS402 Assignment No. 01 Semester: Spring 2016

Assignment No. 01
Semester: Spring 2016
Theory of Automata – CS402

Total Marks: 20

Due Date:  Expired

Objectives:
Objective of this assignment is to assess the understanding of students of Sets, Alphabets, Languages, Regular Expression and Finite Automata.

Instructions:
Please read the following instructions carefully before submitting assignment:
  1. You should consult the recommended books, PowerPoint slides and audio lectures to clarify your concepts.
  2. You are supposed to submit your assignment in .doc format. Any other formats like scan images, PDF, zip, rar and bmp etc will not be accepted.
  3. It should be clear that your assignment will not get any credit if:
·         The assignment is submitted after due date.
·         The assignment is copied from Internet or from any other student.
·         The submitted assignment does not open or file is corrupt.

Note: No assignment will be accepted after the due date through email in any case (load shedding, server down, internet malfunctioning etc.). It is recommended to upload solution file at least two days before its closing date.

For any query about the assignment, contact at cs402@vu.edu.pk

Question 1:                                                                                                                              Marks:5+5 10
Write regular expression for each of the following languages over alphabet set {a.b}.

I)                   Language of all those strings which end with substring ‘ab’ and have odd length.
(a+b)((a+b) (a+b))*(ab)

II)                Language of all those strings which contain no more than two b’s. 
a*ba*ba*+a*ba*+a* 



Question 2:                                                                                                                               Marks: 10
You are required to construct an FA for the language of all those strings whose length is Odd, but contain even number of b’s defined over alphabet set {a,b}.

BEST OF LUCK


Share on Google Plus

About BloggerShabir

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment