CS 2223, Algorithms Email: last name@wpi.edu Class meetings: Lower Perrault Hall, MT RF, 2-2:50 |
|
|
Warning: This syllabus is subject to change!
CS 2223. ALGORITHMS. Cat. I Building on a
fundamental knowledge of data structures, data abstraction
techniques, and mathematical tools, a number of examples of
algorithm design and analysis, worst case and average case, will
be developed. Topics include greedy algorithms,
divide-and-conquer, dynamic programming, heuristics, and
probabilistic algorithms. Problems will be drawn from areas such
as sorting, graph theory, and string processing. The influence of
the computational model on algorithm design will be
discussed. Students will be expected to perform analysis on a
variety of algorithms.
The class schedule (subject to small changes) is here.
Class Mailing Lists: To reach the members of the cs2223 staff, please send mail to the staff mailing list. Its address consists of the string "cs", followed by the course number and a hyphen, and then the word "staff". It's a mailing list at cs.wpi.edu. To reach all students in the class, as well as the staff, please substitute "all" for "staff". Send email to the whole class very sparingly. Required Textbook: T.H. Cormen, C.E. Leiserson, R.L. Rivest, and C. Stein.
Introduction to Algorithms.
Another Good Textbook: J. Kleinberg, E. Tardos. Algorithm Design. Addison-Wesley, 2005. Additional materials: Seven Rules for big-O, Theta Comparisons CS 2223 in Four Pages, a summary of the core material of the course.
Your final grade will reflect your own work and achievements during the course. Any type of cheating will be penalized in accordance with the Academic Honesty Policy. Students are expected to read the material assigned to each class in advance and to participate in class. Class participation will be taken into account when deciding students' final grades. There will be a total of 3 exams. The final exam is cumulative. The exams will be based on material covered by the homework assignments. Exam dates:
Five homework sets will be assigned. They are intended to allow you to master the theoretical side of the course content. However, we will not collect the homework, and it will not be part of the course grade. Why should you do the homework? Even though the homework isn't graded, it's very important. If you can solve the problems in the homework sets, you'll do well on the exams. Exam questions will be engineered to be very similar to the ones in the homework sets. You can collaborate on homework. In fact, you are strongly encouraged to work together in groups. People learn by talking, by sharing ideas, by finding gaps and flaws, by collaborating to fill them. This is also how scientific research happens. This way of studying is both enjoyable and effective. Homework should be completed Thursdays:
There will be five programming projects. They are intended to give you a practical mastery of the course material. They will give you opportunities to apply, measure, and adapt the algorithms discussed in the course. Programming projects are individual work. You may not share code; you may not ask someone to look at your code and help you correct it (except the TAs and professor); you may not assist a student. Any type of cheating will be penalized in accordance with the Academic Honesty Policy. The programming projects will be due Monday nights (generally) at midnight (i.e. at the end of the Monday). The due dates will be:
Thus, if you hand something in that would have been worth 93 on time, but it's 36 hours late, that means that you only get 93(.9)(.9)=75. So, yes, you can hand things in late, but it's expensive, and very expensive if you do it often.
All the programming projects will be done using Lua. Lua is a very simple programming language, designed to allow the maximum computational content to be expressed with a minimum of syntactic clutter and verbosity. It is a procedural language like C and Java, but has excellent support for recursion and higher-order functions. In this regard it is as good as Scheme. I will schedule Lua Labs early in the term, and I will write up a small guide to Lua. One of the advantages of Lua is that it has fairly few gotchas. Three main gotchas are:
You can download Lua for the main types of system here, and Windows users often like Lua for Windows. I will put three copies of the Lua Reference Manual on reserve in the library, but I mainly use the online version. They have a very nice book on Programming in Lua. The version that's free on line is not 100% up-to-date, but it is totally adequate for the parts of the language we'll use in this course. A recent survey of the popularity of programming languages from TIOBE reports for October 2011 that Lua has surged in popularity during the past year. It has risen eight positions, and is now 16th in popularity. We have gathered some instructions, and Lua Lab times, and pointers to some code, at Page for CS 2223 Lua code | |||||||||||||||||||||||