|
|
|
|
4
|
![main2.png](images/main2-small.png)
|
4
|
![main2.png](images/main2-small.png)
|
5
|
![main3.png](images/main3-small.png)
|
5
|
![main3.png](images/main3-small.png)
|
6
|
|
6
|
|
|
|
7
|
+[Verano 2016 - Rafa - Ive]
|
|
|
8
|
+
|
7
|
One commonly used programming technique is *recursion*. With this technique, problems are solved by solving similar problems but for smaller cases. We can construct sets of objects or tasks using *recursive rules* and *initial values*. *Recursive functions* are functions that are self-invoking, using smaller sets or elements each time, until reaching a point where an initial value is used instead of self-invoking. In this laboratory experience you will practice the definition and implementation of recursive functions to scramble an image and make it incomprehensible.
|
9
|
One commonly used programming technique is *recursion*. With this technique, problems are solved by solving similar problems but for smaller cases. We can construct sets of objects or tasks using *recursive rules* and *initial values*. *Recursive functions* are functions that are self-invoking, using smaller sets or elements each time, until reaching a point where an initial value is used instead of self-invoking. In this laboratory experience you will practice the definition and implementation of recursive functions to scramble an image and make it incomprehensible.
|
8
|
|
10
|
|
9
|
##Objectives:
|
11
|
##Objectives:
|
10
|
|
12
|
|
11
|
-1) Define and implement recursive functions.
|
|
|
|
|
13
|
+1. Define and implement recursive functions.
|
12
|
|
14
|
|
13
|
-2) Practice image processing.
|
|
|
|
|
15
|
+2. Practice image processing.
|
14
|
|
16
|
|
15
|
-3) Practice the use of decision and repetition structures.
|
|
|
|
|
17
|
+3. Practice the use of decision and repetition structures.
|
16
|
|
18
|
|
17
|
##Pre-Lab:
|
19
|
##Pre-Lab:
|
18
|
|
20
|
|
19
|
Before arriving at the laboratory you should have:
|
21
|
Before arriving at the laboratory you should have:
|
20
|
|
22
|
|
21
|
-1) Reviewed the concepts related to recursive functions.
|
|
|
|
|
23
|
+1. Reviewed the concepts related to recursive functions.
|
22
|
|
24
|
|
23
|
-2) Studied the concepts and instructions for the laboratory session.
|
|
|
|
|
25
|
+2. Studied the concepts and instructions for the laboratory session.
|
24
|
|
26
|
|
25
|
-3) Have taken the Pre-Lab quiz that can be found in Moodle.
|
|
|
|
|
27
|
+3. Have taken the Pre-Lab quiz that can be found in Moodle.
|
26
|
|
28
|
|
27
|
---
|
29
|
---
|
28
|
|
30
|
|