Lecture 3 Kleen's Star and Plus Oprator
Lecture 3 Kleen's Star and Plus Oprator
(Automata Theory)
Instructor
Waheed Ahmad Khan
CUI Wah Campus
Topic Covered
1. Kleen’s Star Or Kleen’s Cloure (*)
2. Kleen’s Plus (+)
Kleene Star Closure *
Note
Languages generated by Kleene Star
Closure of set of strings, are infinite
languages. (By infinite language, it is
supposed that the language contains
infinite many words, each of finite
length).
Examples:
L = {a, ab}
L* = {^, a, aa, ab, aaa, aab, aba,
aaaa, …} abaaababa L* (ab|a|a|
ab|ab|a factors)
L* = {^ plus all sequences of a’s
and b’s except those that start
with b and those that contain a
double b}
Kleene Star Closure *
L = {xx, xxx} xxxxxxx L*
xx|xx|xxx xx|xxx|xx xxx|xx|xx
L* = { and all sequences of more than
one x}
= {xn : x≠1}
If L = then L* = {}
The Kleene closure L*, of a language L,
S*
S*=S**
Proof of Theorem 1: S*=S** :
Case 1: S** S*
Every word in S** is made up of factors from S* (definition of Kleene
star). Every word in S* is made up of factors from S. Therefore, every
word in S** is also a word in S*. Thus S**S*.
Case 2: S* S**
For any set A, we can show that A A*. Let w be a word in A. Then w
is certainly in A*. If we consider S* as our set A, we can conclude S*
S**.
By definition of equality of sets, we have S*
= S**
Assiginment 1
Slove the Exercise of Chapter 2
Languages
By Danial I . A Choen
Thank You…