You are on page 1of 1

Assignment No.

01
Total Marks: 15
Semester: Spring 2019
Theory of Automata – CS402 Due Date: 13/5/2019

Question No 1: Marks:5
Construct a regular expression (RE) defining each of the following languages over the alphabet
∑={a b}:

• All words ends in 3 consecutive b.


• All words having at least one ‘a’

Answer:
• R.E=(a+b)*bbb

• R.E=(a+b)*a(a+b)

Question No 2: Marks=5+5=10
Construct an FA which recognizes the set of all strings defined over S = {x, y} starting with the prefix
‘xy’.

BEST OF LUCK

https://vustudents.ning.com/

You might also like