Lecture 3,4
Lecture 3,4
It is denoted by Ʃ*.
It is collection of all string defined over Ʃ, including ^ null.
In simple words it is undetermined power. Represent infinite number of terms
can be made including empty string. (0 or more)
e.g.
if Ʃ = {a}, Ʃ* =?
Ʃ* = {^, a, aa, aaa, aaaa ……a(n)}
e.g.
Ʃ = {a, b, c} find Ʃ*
Ʃ* = {a, b, c}*
Ʃ* = {^, a,b,c,ab,ac,bb,ba,bc,cc,ca,cb,abc ……a (n)}
e.g.
Kleene star in string:
S = ab*a
S = {aa,aba,abba,abbba,abbbba……..n}
Descriptive Language
It described the condition imposed on its words.
e.g.
The language L of string of even length, defined over Ʃ = {c} can be written as;
L = {cc, cccc, cccccc, ………}
e.g.
Language does not start with ‘y’ language defined over Ʃ = {x, y, z};
L = {x, z, xy, zx, zy, xyz, ……}
Recursive Language
Describe in three steps:
1. Some basic words are specified in the language.
2. Rules for constructing more words are defined in the language.
3. No string except those constructed in above, are allowed to be in the
language.
e.g.
Defining language of positive even numbers using recursive definition;
• 2 is positive even number
• If x is positive even then so is, x + 2
• No string except those constructed in above, are allowed to be in positive
even.
Defining the language L, of string beginning and ending in same latter’s defined
over Ʃ = {a, b}
L = {aa, bb, abba, abababa, aabbaa, ……}
• a and b is a in language
• S (a) and (b) s (b) are also in language, where s belongs to Ʃ*.
• No string except those constructed in above, are allowed to be in L.