Lecture 15: Recursion
(Sections 5.8-5.10)
CS 1110 Introduction to Computing Using Python
[E. Andersen, A. Bracy, D. Gries, L. Lee, S. Marschner, C. Van Loan, W. White]
http://www.cs.cornell.edu/courses/cs1110/2019sp
Lecture 15: Recursion (Sections 5.8-5.10) CS 1110 Introduction to - - PowerPoint PPT Presentation
http://www.cs.cornell.edu/courses/cs1110/2019sp Lecture 15: Recursion (Sections 5.8-5.10) CS 1110 Introduction to Computing Using Python [E. Andersen, A. Bracy, D. Gries, L. Lee, S. Marschner, C. Van Loan, W. White] Recursion Recursive
[E. Andersen, A. Bracy, D. Gries, L. Lee, S. Marschner, C. Van Loan, W. White]
http://www.cs.cornell.edu/courses/cs1110/2019sp
2
3
4
5
name hasSeam "Dmitry" False None Doll innerDoll
name hasSeam "Catherine" True id1 Doll innerDoll
"Dmitry" "Catherine"
name hasSeam Doll innerDoll
7
8
9
10
11
4
3 2 1
12
1
13
2 1
14
2 1
15
2 1
16
3 2 1
17
3 2 1
18
3 2 1
19
3 2 1
20
3 2 1
21
3 2 1
22
3 2 1
23
3 2 1
4
24
3 2 1
25
4 3 2 1 4 3 2 1 4 3 2 1 4 3 2 1
26
27
28