APS105H: Lectures

Lecture Notes and Schedule

This page contains a schedule for the term, along with lecture notes and code examples that were used in class.

Week Monday Wednesday Friday Readings Notes
1
(Jan 16 - Jan 20)
Lecture 1 Slides Lecture 2 Slides
hello.c
Lecture 3 Slides
helloError.c
height.c
height2.c
Chapter 1 A0 due on Saturday Jan 21
CodeLab 1 due on Sunday Jan 22
2
(Jan 23 - Jan 27)
Lecture 4 Slides
helloInclude.c
overflow.c
Lecture 5 Slides
shoe.c
multivariable.c
multivariable2.c
multivariable3.c
multipleChars.c
Lecture 6 Slides
memRepresentation.c
Chapter 2
(excluding 2.6)
Chapter 3
Labs and Tutorials begin
CodeLab 2 due on Sunday Jan 29
3
(Jan 30 - Feb 3)
Lecture 7 Slides
infiniteLoop.c
countdown.c
Lecture 8 Slides
nestedFor.c
shapes2.c
Lecture 9 Slides
offByOne.c
offByOneInstrumented.c
Chapter 4
Chapter 6.1, 6.2
A1 due on Saturday Feb 4
CodeLab 3 due on Sunday Feb 5
4
(Feb 6 - Feb 10)
Lecture 10 Slides
multidimensional.c
shapesArray.c
Lecture 11 Slides
Function Call Stack Animation [mp4]
Lecture 12 Slides
math.c
sine.c
sine2.c
Chapter 5
(excluding 5.4, 5.6, 5.8)
Chapter 2.6
CodeLab 4 due on Sunday Feb 12
5
(Feb 13 - Feb 17)
Lecture 13 Slides
random1.c
random2.c
random3.c
swap1.c
Lecture 14 Slides Lecture 15 Slides
scanf.c
const1.c
const2.c
const3.c
Chapter 5.4
Chapter 6.3
A2 due on Saturday Feb 18
CodeLab 5 due on Sunday Feb 19
(Feb 20 - Feb 24) Reading Week (no classes)
6
(Feb 27 - Mar 2)
Lecture 16 Slides Lecture 17 Slides Lecture 18 Slides
sum.h
sum.c
printSum.c
Chapters 7.1 - 7.4 Midterm on Friday Mar 2
CodeLab 6 due on Sunday Mar 4
7
(Mar 5 - Mar 9)
Lecture 19 Slides
printUnterminated.c
gets.c
fgets.c
Lecture 20 Slides Lecture 21 Slides Chapters 7.1 - 7.4 A3 due on Saturday Mar 10
A3 due on Sunday Mar 11
No CodeLab this week
8
(Mar 12 - Mar 16)
Lecture 22 Slides Lecture 23 Slides
concat1.c
concat2.c
Lecture 24 Slides Chapter 10.2 No CodeLab this week
9
(Mar 19 - Mar 23)
Lecture 25 Slides Lecture 26 Slides
factorial1.c
factorial2.c
factorial3.c
factorial4.c
Lecture 27 Slides
fibonacci.c
Chapters 8, 10.1 A4 due on Saturday Mar 24
A4 due on Sunday Mar 25
No CodeLab this week
10
(Mar 26 - Mar 30)
Lecture 28 Slides Lecture 29 Slides Lecture 30 Slides Chapters 10.1 - 10.4, 10.6 No CodeLab this week
11
(Apr 2 - Apr 6)
Lecture 31 Slides
ctype.c
searching.c
Lecture 32 Slides
binSearch.c
Good Friday (no classes) Chapters 9.1, 9.2, 9.5 A5 due on Saturday Apr 7
No CodeLab this week
12
(Apr 9 - Apr 13)
Lecture 33 Slides Lecture 34 Slides Lecture 35 Slides Chapters 9.3 - 9.8
(9.6 and 9.7 optional1)
A5 due on Wednesday Apr 11
CodeLab 7 due on Thurs Apr 12
Classes end on Friday April 13

1 Chapters 9.6 and 9.7 cover sort algorithms (shell sort and quicksort) that we haven't discussed in class. These Chapters are therefore optional, and these two algorithms will not be on the exam. However, they are useful examples of thinking about algorithms, and may be useful as study aids.