Advanced Topics in Theoretical Computer Science
Part 3: Recursive Functions (4) 18.12.2014 Viorica Sofronie-Stokkermans Universit¨ at Koblenz-Landau e-mail: sofronie@uni-koblenz.de Wintersemester 2014-2015
1
Advanced Topics in Theoretical Computer Science Part 3: Recursive - - PowerPoint PPT Presentation
Advanced Topics in Theoretical Computer Science Part 3: Recursive Functions (4) 18.12.2014 Viorica Sofronie-Stokkermans Universit at Koblenz-Landau e-mail: sofronie@uni-koblenz.de Wintersemester 2014-2015 1 Contents Recapitulation:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
x y 1 2 3 4 . . . n 0+1=1 1+1=2 2+1=3 3+1=4 4+1=5 n + 1 1 A(0, 1)=2 A(0, A(1, 0))=3 A(0, A(1, 1))=4 A(0, A(1, 2))=5 A(0, A(1, 3))=6 n+2 2 A(1, 1)=3 A(1, A(2, 0))=5 A(1, A(2, 1))=7 A(1, A(2, 2))=9 A(1, A(2, 3))=11 2n+3 3 A(2, 1)=5 A(2, A(3, 0))=13 A(2, A(3, 1))=29 A(2, A(3, 2))=61 A(2, A(3, 3))=125 2n+3−3 4 A(3, 1) A(3, A(4, 0)) A(3, A(4, 1)) A(3, A(4, 2)) A(3, A(4, 3)) 22...22
−3 = 222 − 3 = 2222 −3 = 22222 −3 = 222222 −3 = 22265536 −3 = 13 = 65533 . . . 20
21
22
23
24
25
26
27
28
29
30
31
n1
nk
nk+1
n1
nk
32
33
34
35
36
37
38
39
40
41
42