Professional Documents
Culture Documents
Examples:
S=a, bb
T=a,ab
S+T={a,bb,a,ab}
ST={aa,aab,bba,bbab}
Example 2:
S={a,bb,bab}
T={a,ab}
S*T={aa,aab,bba,bbab,baba,babab}
P={a,bb,bab}
Q={empty,bbbb}
P*Q={abbbb,bbbbbb,babbbbb}
Begin with b and end with a
B(a+b)*A or
b(ab)*a
(a+b)*=a,ab,aabb….
(ab)*=ab,abab,ababab….
Do not end with double letters….
(a+b)*+a+b
Recursive:
L1 ={x,xx,xxx,….} or {x,x2,x3……} or x+
Rule1: x is a basic object
Rule2: x(n+1) where n=0,1,2,3,4….
Rule2:Allow only according to rule 2…
Polynomial:Definition
X8+X4
1. Rule2:x is an polynomial..
2. Rule2:x is a polynomial
3. Rule3:x2 is a polynomial.. (1,2)
4. Rule3:x3 is a polynomial.. (3,2)
5. Rule3:x5 is a polynomial.. (4,3)
6. Rule3: x8 is a polynomial (5,4)
7. Rule3:x4 is a polynomial (4,2)
8. Rule3:x8 +x4 is a polynomial (7,6)