Professional Documents
Culture Documents
02 Recursive Definition
02 Recursive Definition
02 Recursive Definition
Faryal Shamsi
Lecturer Computer Science
• Rule 1 – 2 is in EVEN.
• Rule 3 – The only elements in the set EVEN are those that can be
produced from the two rules above.
Proof
14 is in ’EVEN’
• By Rule 1 – 2 is in EVEN
• By Rule 2 – x = 2, y = 2 4 is in EVEN
• By Rule2 – x = 2, y = 4 6 is in EVEN
• By Rule2 – x = 4, y = 4 8 is in EVEN
• By Rule2 – x = 6, y = 8 14 is in EVEN
Example
’POLYNOMIAL’ – Recursive Definition
• Rule 3 …
Automata Theory & Arithmetic Expressions
• Rule 1 0! = 1