Assignment 02 (Second Semester 2024-2025)
Assignment 02 (Second Semester 2024-2025)
1443/1444
Assignment No. 2
(Theory of Computation, 235CSS-3)
Second Semester 2024/2025
INTRODUCTION ………………........................................................ 2
ASSIGNEMNT # 02 …......................................................................... 3
Page 1 of 4
INTRODUCTION
First Semester 2024/2025 (1446/1447)
GUIDELINE
1. You can take help from course book, any theory of computation book, and/or from internet. But try to write
in your own words. Your assignment will be graded zero, if you will copy exactly the same from any book
or from internet.
2. Assignment deadline is very important. Any assignment submitted after deadline will be rejected.
3. First page of assignment must contain Course Code, Course Name, Assignment#, title of assignment and
student’s name.
4. Write your answer in MS Word and convert it to PDF if possible or write your answer in paper then scan
it and submit it in the blackboard in assignment section.
5. Any kind of cheating both students will get ZERO in the assignment
Page 2 of 4
ASSIGNMENT # 02
Submission: [1 Mark]
Question No. 1: Convert the following NFA to DFA by using subset construction method.
(Hint: first make the NFA transition function then make the subset construction table and then
convert the table to DFA) [1.0 + 1.0 = 2.0mark]
0, 1
0
0 1
Question No. 2: Convert the following NFA to DFA by using subset construction method.
(Hint: first make the NFA transition function then make the subset construction table and then
convert the table to DFA) [1.0 + 1.0 = 2.0marks]
a
1
b
a b
a,b
a,b b
2
0 4
a,b b a,b
b
Page 3 of 4