Computer Science 212 Spring 1998

Course Information

CS212 is an introductory course covering a broad range of computer science concepts and techniques, including data abstraction, recursion, program correctness, generic functions, object oriented programming, pattern matching, and languages and their evaluators. We use the Dylan language, an object oriented dynamic language developed at Apple Computer, which is well suited for covering a broad range of introductory computer science topics. This is not a course about the Dylan language, it just happens to be the "notation" that we have chosen for writing programs. The major goals of the course are to teach students how to think clearly about programs and programming, and to provide a toolbox of modern programming techniques that will be applicable in any language.

What course to take: Students often wonder whether to take CS211 or CS212. CS211 focuses on programming skills in the object-oriented language Java, whereas CS212 provides exposure to a broad range of computational and programming problems, using a number of programming paradigms including functional, object-oriented and imperative programming techniques. If you have a good CS background or good formal skills (e.g., mathematics or physics) you should probably take CS212. Transfers between CS211 and CS212 (in either direction) are encouraged during the first two weeks.

Reaching Us

The best way to reach the course staff is by posting questions or comments to the CS212 newsgroup cornell.class.cs212

You can also reach the course staff is by sending email to cs212@cs.cornell.edu.

Who We Are

When We Meet

Lectures are Tuesday and Thursday at 10:10, in Hollister 110 and recitations are Monday and Wednesday, 2:30-3:20 in Upson 205 (Section 1) or 3:35-4:25 in Hollister 320 (Section 2). Recitations expand on the material in lecture, and provide more opportunity to ask questions.

Office Hours

Consulting Hours

Consulting hours are held in Upson 320, SMTW 7-10pm. The night before every project is due, we will hold extended consulting hours from 7:00pm to 12:00 am. Consulting hours will not be held the day the problem sets are due, or the day after.

Course Materials

There is no textbook for this course. There will be course handouts and lecture notes, which will be available both in hardcopy and on the course Web site.

The Dylan interpreter is available free on the course Web site, and was developed by Justin Voskuhl for this class. It is implemented in Java, and thus will run under any Java capable Web browser. The best current browser (it changes almost weekly) is Netscape 4 for Windows95/NT. There are also standalone versions available that you can download onto your computer if you do not want to use the Web browser version. One word of warning: if you download a standalone Dylan onto your machine, make sure that you are using the most recent version by checking the web site.

Course Requirements

Students are responsible for all material in the assigned readings, as well as that covered in lectures and in recitations. There will be six problem sets, two preliminary exams, and a final exam (a schedule is given below). Each problem set will be a combination of written exercises and a programming assignment. Course grades will be based on a combination of the problem sets and exam scores. The problem sets will account for approximately one half of the total grade. No late assignments will be accepted (we will generally grade assignments immediately and return them the following class period).

You should try to complete the programming assignments early, as we will not accept late work. The best use of your time and the machine's time is to think about the problems before sitting down at the computer. [No matter how many times we say this, it takes a long time to sink in; think about the problems before sitting down at the computer.]

Turning in Assignments

Assignments should be turned in on the day that they are due in either in lecture or in Upson 303 before 4:00 pm. Do not turn them in to the consulting office, as there will be no one there to receive them. No late assignments will be accepted. There will be no extensions.

Policy on Joint Work

Much of the learning in this course comes from doing the programming problems. You may work jointly with one other person on the assignments (no more than two people should work together). However, if you work together with someone, you must submit a single joint assignment with both names on it. Under no circumstances may you hand in work done with (or by) someone else under your own name. If in doubt, credit the person(s) from whom you got help. Your code should never be shared with anyone other than your partner. You would be amazed at how easy it is to tell when people work together on problem sets, so please don't make life unpleasant for all of us by breaking these rules. The penalties for cheating at Cornell are severe, and include expulsion.

Public Lab Facilities

CIT and various colleges on campus provide public Macintosh and PC facilities, you may use your own machine or the public ones. Since the course software is web-based, it doesn't matter which platform you use. The CS department does not provide computer facilities for this course.

Due dates (subject to change)

[2/5] Problem set 1

[2/17] Problem set 2

[3/3] Problem set 3

[3/30] Problem set 4

[4/13] Problem set 5

[4/20] Problem set 6jr

[4/28] Problem set 6sr

Exam schedule (written in stone)

  Date Time Location
Prelim 1 Thursday, March 5, 1998 7:30-9:00pm Hollister B14
Review Wednesday, March 4, 1998 7:30-9:00pm Phillips 219
Prelim 2 Tuesday, April 21, 1998 7:30-9:00pm Thurston 205
Review Monday, April 20, 1998 7:00-10:00pm Upson B-17
Final Tuesday, May 12, 1998 3:00-5:30pm Hollister B14
Review Monday, May 11, 1998 5:00-7:00pm Upson 111

Tentative Lecture Outline

[1/20] (Professor Kozen) The Study of Computation, and an Introduction to Dylan

[1/22] (Professor Kozen) Function Abstraction and the Substitution Model of Evaluation

[1/27] Procedures and Processes: Iteration, Recursion and Induction

[1/29] Higher Order Procedures: Functional Arguments and Values

[2/3] Analysis of Algorithms: Orders of Growth

[2/5] Data Abstraction: Structures, Contracts and Implementations

[2/10] Hierarchical Data: Lists, Trees and the need for Quotation

[2/12] Recursive List Processing and Reasoning about Lists

[2/17] Symbolic Differentiation: An Extended Example

[2/19] Generic Operations: Type Dispatching and Generic Functions

[2/24] Generic Operations: Polynomial Arithmetic System

[2/26] Assignment and the Environment Model of Evaluation

[3/3] Assignment and Local State Variables

[3/5] Objects with State and Object Oriented Programming

[3/10] Object Oriented Programming and Inheritance

[3/12] Multimethods and More About Object Oriented Programming

[3/24] Mutable Data: Stacks and Queues

[3/26] Mutable Data: Heaps, Heapsort and Priority Queues

[3/31] The Metacircular Evaluator: Dylan in Dylan

[4/2] Compilation

[4/7] Optimization

[4/9] Variations on Expression Evaluation

[4/14] Streams

[4/16] Infinite Streams

[4/21] Garbage Collection and the Illusion of Infinite Memory

[4/23] Topics in CS: Randomization and QuickSort

[4/28] Topics in CS: Computability

[4/30] Mystery Topic


Last updated: 01/19/00 11:36 PM