Computer Science 226
Algorithms and Data Structures
Fall 2009


Course Information | Assignments | Exercises | Lectures

COURSE INFORMATION

Description.   This course surveys the most important algorithms and data structures in use on computers today. Particular emphasis is given to algorithms for sorting, searching, and string processing. Fundamental algorithms in a number of other areas are covered as well, including geometric and graph algorithms. The course will concentrate on developing implementations, understanding their performance characteristics, and estimating their potential effectiveness in applications.

Prerequisites.   COS 126 or COS 217 or permission of instructor.

Lectures.   Attendance is required. You are responsible for all material presented in lecture; some of that material is not covered in the textbooks.

Precepts.   You should come to precept prepared to participate in the discussion, not just ask questions.

Staff.   You are welcome to attend the office hours of any staff member.

        TIME      ROOM    PERSON    OFFICE      HOURS           EMAIL       
L01 T Th
11–12:20pm
Bowen
222
Kevin
Wayne
CS
207
T 3–4pm
W 3–4pm
wayne@cs
P01 Th
12:30–1:20pm
Friend
109
Anuradha
Venugopalan
CS
103A
M 5:30–7:30pm avenugop@cs
P02 Th
3:30–4:20pm
Friend
111
Berk
Kapicioglu
CS
413
T 4–6pm bkapicio@cs
P03 Th
2:30–3:20pm
Robertson
005
Corey
Toler-Franklin
CS
418B
M 1:30–2:30pm
T 12:30–1:30pm
ctoler@cs

Grades.   Your grade for the course will be based on the following components: programming assignments: (45%), midterm exam: (15%), final exam: (25%), and exercises (15%), and staff discretion.

Course website.   The COS 226 website is

http://www.princeton.edu/~cos226
It includes links to course content, including lecture slides, programming assignments, and exercises. You will also use it to submit programming assignments and check grades.

Readings.   The required readings are:

The following is a recommended basic Java programming reference:

You are expected to read the textbooks. They contain a wealth of information beyond what we can cover in lecture that are certain to enhance your understanding of the course material.

Booksites.   You can also find an extensive amount of supplementary information at the booksites:

http://www.cs.princeton.edu/IntroProgramming

http://www.cs.princeton.edu/algs4

including the code from lecture.

Programming assignments.   There will be regular programming assignments. These involve applying the material from lecture to solve problems in science, engineering, and commerce.

Exercises.   There will also be weekly exercises. These will consist of short questions on the material in the lectures and readings.

Exams.   There will be an in-class midterm exam on the last lecture before break and a final exam as scheduled by the Registrar. Here is an archive of old exams.

Computers.   You may develop your programs on any machine that you like: we encourage you to use your own equipment. We provide instructions for for setting up a Java programming environment under Windows, OS X, and Linux.

Labs.   We hire undergraduate lab assistants who are available to answer general computing questions in the Friend 016 and 017 labs. Lab TAs can assist you in debugging, provided you have first made a reasonable effort to identify the bug and isolate the problem. If you have questions regarding the course material or programming assignments, see your preceptor or instructor.

Important note.   Please do not publish solutions to programming assignments in a way that could compromise their utility as pedagogical tools. At Princeton, this is a violation of the basic rights, rules and responsibilities of members of the university community.

Copyright.   All rights reserved. None of this material may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, photocopying, recording or otherwise without prior written permission. Permission is granted to instructors who adopt Algorithms in Java to use this supplemental material in conjunction with their course.

Short history of credits.   These course materials have been under development by Robert Sedgewick since at least 1978. The lecture notes and assignments were rewritten by Robert Sedgewick and Kevin Wayne in 2003-2009.