CS402 Assignment 2 Solution and Discussion

Assignment No. 02
Semester: Fall 2019
Theory of Automata – CS402
Total Marks: 20

Due Date: 02 Dec, 2019

Objectives:
Objective of this assignment is to assess the understanding of students about the concept of languages, regular expressions and finite automata and GTG.

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 [email protected]

Question No 1: Marks = 10 Q1: Derive the regular Expressions (RE) for the following DFA. You are required to mention all the required steps.

ef22a679-e776-414a-857e-1dcb57da5420-image.png

Question No 2: Marks =10
Q2: Derive the regular Expressions (RE) for the following DFA. You are required to mention all the required steps.

f7093334-7a2a-4b50-bd09-dc1dbbea8184-image.png

Note: Providing direct solution without step by step process will be not be accepted for both the questions.

BEST OF LUCK

Solution:
Q.1 Answer
ff82bbb9-c66e-4599-9413-993ad377759d-image.png
Q.2 Answer
35579daa-5ab1-4934-aaf6-86c032c73e48-image.png

@zareen thanks for sharing

Solution:
Q.1 Answer
ff82bbb9-c66e-4599-9413-993ad377759d-image.png
Q.2 Answer
35579daa-5ab1-4934-aaf6-86c032c73e48-image.png