Intro to Computer Science
Intro to Computer Science
powered by cs50
Today is Friday
October 24th , 2025
We are in week 5
Powered by Google Translate
Lectures
Week 21
Monday - Wednesday: Linear Search |
Objective:
- Implement a linear search function in a program
- Discuss best and worst run time
|
| David on Linear Search: VIDEO |
| cs50 Short: VIDEO |
| Doug on LS: VIDEO |
| HW: Dream of bits |
Thursday - Friday: Bubble Sort |
Objective:
- Walk Thru Bubble Sort in Class
- Develop Psuedocode for Bubble Sort
|
| David on Bubble Sort: VIDEO 1 VIDEO 2 |
| cs50 Short on Bubble Sort: VIDEO |
| Ali Section on Bubble Sort: VIDEO |
| Doug on Bubble Sort: VIDEO |
| HW: TBD |
Week 22
Monday - Tuesday: Selection Sort |
Objective:
- Walk Thru Selection Sort in Class
- Develop Psuedocode for Selection Sort
|
| David on Selection Sort: VIDEO 1 VIDEO 2 |
| cs50 Short on Selection Sort: VIDEO |
| HW: 10 minutes of slow deep IN and OUT breaths |
Wednesday - Friday: Quiz and Insertion Sort |
Objective:
- Shift and modify elements in an array
- Take da Google quiz and then watch video on INSERTION sort
|
| Google Quiz: QUIZ |
| DAVID on Insertion Sort: VIDEO |
| cs50 Short on Insertion Sort: VIDEO |
| Doug on Insertion Sort: VIDEO |
| HW: WATCH ALL THE VIDEOS |
Week 23
Monday - Tuesday: Binary Search |
Objective:
- Watch Ali's video on Binary Search in the link below
|
| Ali on Binary Search: VIDEO |
| David Binary Search (recent): VIDEO |
| Doug on Binary Search VIDEO |
| HW: Code up a function that performs a Binary Search (do NOT use recursion) |
Wednesday - Efficiency of our Sorting Algorithms |
| Objective:
|
| David on Efficiency VIDEO |
| HW: TBD |
Thursday and Friday: Challenge Problems |
Objective:
- Solve as many problems as you can
|
| Problems: DOC |
| HW: Enjoy your break |
February Break
Week 24
Monday - PRNG |
Objective:
- Write a command line program that prints random numbers to the terminal screen. Must contain 2 command line inputs (n size of list and max number in list). Must use drand48() and not rand()
|
| Sample PRNG Solution: RNG SOLUTION |
| HW: Finish your program |
Tuesday: Streams and Pipes |
Objective:
- Redirect output from RNG into a textfile
|
| cs50 Short on Pipes: VIDEO |
| HW: Rewatch piping video from RNG assignment and try some of the things we did not get to in class. |
Thursday - Friday: The mighty 'struct' |
Objective:
- Watch the cs50 videos on custom types and the 'struct'
|
| David on structs (1): VIDEO |
| David on structs (2): VIDEO |
| cs50 Short on structs: VIDEO |
| Dougie on structs: VIDEO |
| HW: Chop Wood, Carry Water or watch cs50 videos |
Week 25
Monday - Implementing a Pointer in Swap |
Objective:
- Write and explain the difference between int*, *x, and &x
- Watch cs50 short on pointers discuss pointers
|
| cs50 short on pointers: youTube |
| HW: Extra Credit Project PDF |
Tuesday - Hexadecimal |
Objective:
- Use hexadecimal numbers to represent binary data
|
| cs50 Wiki on HEX: HTML |
| HW: Pick an RGB color and represent in binary, decimal, and hex notation |
Wednesday - Friday: File I/O |
Objective:
- Identify the three main stages of implenenting File I/O in a c program.
|
| David on struct review and intro File I/O VIDEO |
| cs50 Short on File I/O VIDEO |
| HW: Relax |