04-12-2011, 11:31 PM
Question No.1
RECURSIVE DEFINITION
a. Give recursive definition of language defined over alphabet Σ = {a, b}, having all
strings STARTING WITH aa OR ENDING WITH bb
b. Give recursive definition of language defined over alphabet Σ = {a, b}, having all
strings with length MULTIPLE OF 2
c. Give recursive definition of language defined over alphabet Σ = {a, b}, having all
strings NOT ENDING with aa or bb
d. Give recursive definition of language defined over alphabet Σ = {a, b}, NOT
HAVING ab at any place.
e. Give recursive definition of ODD PALINDROME (PALINDROME WITH
ODD STRINGS ONLY) defined over alphabet Σ = {a, b}
Question No.2
REGAULAR EXPRESSIONS
Give Regular Expression for each of the following language defined over alphabet Σ =
{a, b}
a. Language having all strings STARTING AND ENDING WITH ab
b. Language of strings NOT having bb OR aa at any place
c. Language of all strings NOT HAVING aab in start
d. Language of all strings NOT HAVING aab in end
e. Language of all strings HAVING count of b’s multiple of 2 [No restriction on
count of a]
Question No.3
FINITE AUTOMATA
Give Finite Automata for each of the following language defined over alphabet Σ = {a, b}
a. Language having all strings with alternating a’s and b’s , some example strings
are ababab… or bababa…
b. Language having all strings NOT containing aa at any place
c. Language of all strings NOT STARTING with bb
d. Language of all strings STARTING WITH bba
e. Language having all strings NOT having even no of a’s and b’s
RECURSIVE DEFINITION
a. Give recursive definition of language defined over alphabet Σ = {a, b}, having all
strings STARTING WITH aa OR ENDING WITH bb
b. Give recursive definition of language defined over alphabet Σ = {a, b}, having all
strings with length MULTIPLE OF 2
c. Give recursive definition of language defined over alphabet Σ = {a, b}, having all
strings NOT ENDING with aa or bb
d. Give recursive definition of language defined over alphabet Σ = {a, b}, NOT
HAVING ab at any place.
e. Give recursive definition of ODD PALINDROME (PALINDROME WITH
ODD STRINGS ONLY) defined over alphabet Σ = {a, b}
Question No.2
REGAULAR EXPRESSIONS
Give Regular Expression for each of the following language defined over alphabet Σ =
{a, b}
a. Language having all strings STARTING AND ENDING WITH ab
b. Language of strings NOT having bb OR aa at any place
c. Language of all strings NOT HAVING aab in start
d. Language of all strings NOT HAVING aab in end
e. Language of all strings HAVING count of b’s multiple of 2 [No restriction on
count of a]
Question No.3
FINITE AUTOMATA
Give Finite Automata for each of the following language defined over alphabet Σ = {a, b}
a. Language having all strings with alternating a’s and b’s , some example strings
are ababab… or bababa…
b. Language having all strings NOT containing aa at any place
c. Language of all strings NOT STARTING with bb
d. Language of all strings STARTING WITH bba
e. Language having all strings NOT having even no of a’s and b’s
