CS 47 Handouts - Spring, 2008

T. Howell


Last update: 23-May-2008


(Added 5/23/08)
Grades:
Two lists of grades are posted.
Section 1 1:30,   
Section 2 5:30,
You need to use the same id and password that we have used all semester. The grades are sorted by the last four digits of your student ID number.
Several students have earned extra credit for finding errors in the text or on assignments and for suggesting exam problems. The quiz was also treated as extra credit for up to 15% of a homework assignment. These credits have been factored into your the homework score.
Contact me by e-mail if you want details of your HW 6 and final exam scores.

Have a great summer!

(Added 5/12/08) Slides for week 16: NEW

(Added 5/11/08) Make-up Final Exam NEW

(Added 5/02/08)
Homework 5 solutions: are posted. NEW
There is one program, bigfact.c, that does all three variations of this assignement: bigfact, bigfactx, and subfactx. Read its comments if you want to run it. The file mull.s is the same as for HW 3.
bigfact.c, mull.s
The grading script is available: hw5gradex.bat. This one is for bigfactx, but the others are essentially the same.
Two files are available with enough parts of the correct answers for the large factorials (hw5.txt) and the subfactorials (hw5s.txt) to check your answers. hw5.txt, hw5s.txt.
You need to use the id and password that were given in class for all these files.

Several students omitted the additional carry that can be generated when adding the carry into the i-th word of the product. This doesn't affect any answers below 3000! or !3000, but it affects both 4747! and !4747 when computed the usual way. One student got 4747! correct without the extra carry by multiplying the larger factors first. This method begins to fail after 4747 but before 8000.


(Added 4/29/08) Final Exam topics NEW

(Added 4/29/08) Homework 6

(Added 4/28/08) Slides for weeks 14 and 15:

(Added 4/21/08)
Reading for Weeks 14, 15:
Chapter 9, Sections 9.1 - 9.4
Chapter 5, Sections 5.1 - 5.6, skim 5.7 - 5.16
(Added 4/22/08)
Grade status:
Two lists of approximate grades based on homework (so far) and two midterms is posted.
Section 1 1:30,    Section 2 5:30,
You need to use the id and password that were given in class.

(Added 4/22/08) Homework 5 E. C. example

(Added 4/21/08) Slides for week 13:

(Added 4/21/08)
Reading for Week 13:
Chapter 6, Sections 6.1 - 6.5, except 6.4.3 - 6.4.7
Chapter 10, Sections 10.1 - 10.3, 10.6
(Added 4/20/08)
Midterm 2 solutions: are posted.
A version,    B version,
The A version is for odd numbered exams, the B version is for even numbers.
You need to use the id and password that were given in class.

(Added 4/16/08) Homework 5

(Added 4/14/08)
Homework 4 solutions: are posted.
There are two versions: Problems 4 key.doc, and Problems 4 key.rtf
You need to use the id and password that were given in class.

(Added 4/09/08) Slides for week 12:

(Added 4/09/08)
Reading for Week 12:
Chapter 8, Sections 8.1 - 8.3
(Added 4/05/08) Homework 4 correction
Typographical errors have been corrected in Problem 4.2. Please re-download.
(Added 4/03/08) Slides for week 11:

(Added 4/03/08)
Reading for Week 11
Chapter 7, Sections 7.1 - 7.11
(Added 3/24/08)
Homework 3 solutions: are posted.
There are three versions of subfac.s, a simple 25-byte solution and two clever and small student solutions (20 bytes each).
big_mult.c, mull.s, subfac.s, subfac2.s, subfac3.s,
The grading script is available: hw3grade.bat
You need to use the id and password that were given in class.

(Added 3/22/08) Homework 4

(Added 3/18/08)
Midterm 1 solutions: are posted.
A version,    B version,
The A version is for odd numbered exams, the B version is for even numbers.
You need to use the id and password that were given in class.

(Added 3/17/08) Slides for weeks 9 & 10: