CS_402 Assignment No.4
Theory of Automata
ASSIGNMENT NO.4
Total Marks= 20 (10+10)
Assignment Submission Deadline
Your assignment must be uploaded before or on 3rd of Jan, 2011 [upload your assignment well before due date to avoid any assignment uploading related issues].
Rules for Marking
It should be clear that your assignment will not get any credit if:
o The assignment is submitted after due date
o The assignment is copied
Objectives
Objectives of this assignment are to make students able to understand the following concepts,
o Transition Graph
o Regular Languages
o Non-Regular Languages
o Pumping Lemma Version I
o Pumping Lemma Version II
Assignment No.4
Question No 1
Marks: (2.5*4) =10
Recall the idea of regular languages, so if L1 and L2 are regular languages then L1 + L2 , L1L2 and L1* are also regular vu solutions.com languages. If L1 and L2 are expressed by TG1 and TG2 given below then find:
I. L1 + L2
II. L1L2
III. L1*
IV. L2C
L1= {all words that have different first and last letters}
L2= {Λ, ab, aaa, bbbb}
Question No 2
Marks: (5*2) =10
Suppose we have a language defined below:
anb3n Where n = 1, 2, 3 …
Some strings belonging to this language are, abbb , aabbbbbb , aaabbbbbbbbb, …..
[a1b3, a2b6 ,a3b9 ,a4b12, …]
Using below given methods, prove that the given language is non-regular:
1. Pumping Lemma Version I
2. Pumping Lemma Version II
Hint: [Make use of some example strings]
You can view the demo video in file,to see how to make Transition Graph in MS Word.
http://vulms.vu.edu.pk/Courses/CS402/Downloads/Assignment1.00.zip
Assignment Uploading Instructions:
o Upload single word file having solutions for all parts.