This solution can help you out just download it. have fun.View more random threads:
- CS502 Fundamental of Algorithms Assignment No.1 Spring...
- CS602-Computer Graphics Assignment No. 02 Fall 2012
- CS614 Data Warehousing Assignment No. 01 spring April 2012
- cs502 Fundamentals of Algorithms assignment no 5 spring...
- CS502 Fundamentals of Algorithms Assignment No .4 Solution...
- CS506 Web Design and Development Assignment no 3 Solution...
- CS403 Database Management Systems Assignment No.1 Solution...
- CS402 Theory of Automata Assignment no 3 spring May 2012
- cs402 first semester first assignment spring may 2015
- CS506 Web Programming & Development Assignment No.6 Fall...
Objectives
Objective of this assignment is to make students able to understand the following concepts,
Recursive Definition of a language
Regular Expression
Finite Automata
Recursive Definition:
Question No.1
a. Give recursive definition of language defined over alphabet Σ = {a, b}, having all strings starting with a or
b
a. Give recursive definition of language defined over alphabet Σ = {a, b}, having all strings ending with aa.
b. Give recursive definition of language defined over alphabet Σ = {a, b}, having all strings NOT ending
with a.
c. Give recursive definition of language defined over alphabet Σ = {a, b}, having all strings NOT ending
with bb.
d. Give recursive definition of language defined over alphabet Σ = {a, b}, having all strings having aa at any
place.
e. Give recursive definition of language defined over alphabet Σ = {a, b}, having all strings NOT having aa
at any place.
_______________________________
Regular Expressions:
Question No.2
Give Regular Expression for each of the following language defined over alphabet Σ = {a, b}
b. Language having all strings STARTING with a or b
c. Language having all strings NOT having ab
d. Language having all strings NOT having bb
e. Language having all strings HAVING aa
f. Language having all strings HAVING bba
g. Language having all strings NOT having two consecutive a’s
h. Language having all strings NOT having even no of a’s and b’s
________________________________________
Finite Automaton:
Question No.3
Give Finite Automata for each of the following language defined over alphabet Σ = {a, b}
a. Language having all strings STARTING with a or b
b. Language having all strings NOT having ab
c. Language having all strings NOT having bb
d. Language having all strings HAVING aa
e. Language having all strings HAVING bba
f. Language having all strings NOT having two consecutive a’s
g. Language having all strings NOT having even no of a’s and b’s
_____________________________________
RE to FA and FA to RE conversion:
Question No.4
Convert FA’s of the following two languages you have already made in Question No.3 to RE’s using procedure
given in Kleene’s theorem and verify RE with your given RE in question 2.
a. Language having all strings HAVING aa
b. Language having all strings NOT having two consecutive a’s
___________________________
Important Note:
While attempting any question always remember the following points:
o Where OR is used in the description of a language it means that expressions on both sides of ‘OR’ are
parts of the language.
o Where NOT is used in description of the language it means that language includes all strings except
described in the ‘NOT’ condition, for example language NOT starting with a, means all strings not having
a in the start (you have to evaluate yourself what kinds of strings are these).
Solution can be found on the attachment file.
Sponsored Links
Urgent call: 03455242488. | Virtual University Assignments
Virtual University GDBs | Virtual University Papers | Vu Projects | Vu Handouts
About Expert
There are currently 1 users browsing this thread. (0 members and 1 guests)