Recursive Definition
Recursive Definition
PRESENTATION BY
=>ESHA SAJID
=> ALI ASHGAR
=> DANYAL ASIF
RECURSION
1. The part of definition which can be expressed in terms of
smaller versions of itself.
(I) BASE: € is in ∑
Þwhere € is the null string.
ÞRECURSION:
(II) if S belongs to ∑* then:
Þ(a) sa belongs to ∑*
Þ(b) sb belongs to ∑*
(III) Where sa and sb are concatenation of s with a and b respectively.
FOR EXAMPLE
(1) Give derivations showing that abb is in ∑*.
SOLUTION:
Þ € belongs to ∑* by I.
Þ a= €a belongs to ∑* by 1 and II(a)
Þ ab belongs to ∑* by 3 and II(b)
Þ abb belongs to ∑* by 3 and II(b)
RECURSIVE DEFINATION OF SUM
Given numbers a1,a2,……,an , where n is a positive integer , the
summation from i=1 to n of ai, denoted as
Is defined as follows
SETSRECURSIVE DEFINATION
OF UNION OF SETS
Given sets A1,A2,…..,An, where n is a positive number. The union of Ai from i=1 to n ,
denoted
is defined by:
BASE:
RECURSION: ()U An
RECURSIVE DEFINTAION OF
INTERSECTION OF SETS
Given sets A1,A2,…….,An where n is a positive integer, the intersection of Ai
from i=0 to n, denoted as :
is denoted as
BASE:
RECURSION: =()
THANK YOU
THE END