Group Activities for today:
- Ice breaker: do you eat leftover pizza hot or cold?
- Create a Notion page at the bottom of this page for your group (if you haven’t already), and spend a few minutes playing around with Notion features.
- Each student in the group should:
- [x] Type some text
- [x] Type some code
- [x] Type an equation
- [x] insert an image
- [x] hide the image behind a toggle
- [x] add a to-do list
- [x] change the color of text
- [x] tag a person in your group or @Lian Duan
- Complete the following activities. You can copy the questions into your own page, but if you do, try to have your answers in a different color.
- [x] What's an algorithm?
- [x] What algorithms do you know? Write at least 3 that you know of individually, then share and compare with the others in your group (think about your other classes - 127, 128, discrete, etc)
- [ ] order traversals
- [ ] search algorithms
- [ ] divisibility checks
- [ ] What is pseudocode? Pick ONE algorithm from your group, and try to write it out in pseudocode.
- [ ] divisibility check for 3
- [ ] Sum digits of number
- [ ] check if sum is divisible by 3
- [ ] if yes then the original number is too
- [ ] Look at the code below for Insertion Sort, written in pseudocode (note that the textbook's format may be a bit different), and see if you can figure out what it's doing (as a group)
- [ ] Trace through the code using the sample array below and write how each iteration (or pass) through the loops causes the array to change. Make sure you are writing out every pass, don’t just skip to the end 🙂
[24 | 21 | 55 | 8 | 76 | 6 | 2 | 66 | 50 | 82]
- Hello!
- Hi
$x=x+y$
int a =2;
println("hello");
$x^2 + 3x = 186$
@He Lian
- [x] Finish class activity