CPSC 121: Models of Computation 2018 Summer, section V01
Introduction & Motivation Meghan Allen, based on notes by Steve Wolfman, Patrice Belleville and others
- 1
This work is licensed under a Creative Commons Attribution 3.0 Unported License.
CPSC 121: Models of Computation 2018 Summer, section V01 - - PowerPoint PPT Presentation
CPSC 121: Models of Computation 2018 Summer, section V01 Introduction & Motivation Meghan Allen, based on notes by Steve Wolfman, Patrice Belleville and others 1 This work is licensed under a Creative Commons Attribution 3.0 Unported
This work is licensed under a Creative Commons Attribution 3.0 Unported License.
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
;; Model in math, translate to BSL. (define (introductions n) (* n (- n 1))) ;; Model as “I know what happens ;; a) in a group of 0 people, and ;; b) when someone new enters a group.” ;; Translate to BSL. (define (introductions n) (if (= n 0) (+ (introductions (- n 1))) ; the smaller group (* 2 (- n 1))) ; the extra intros
21
22
23
24
25
26
induction!)
27
28
29
30
31
32
33
34
35
36