Skip to main content

Course Info

CS 3110 (formerly CS 312) is the third programming course in the Computer Science curriculum, following CS 1110/1112 and CS 2110. The goal of the course is to help students become excellent programmers and software designers who can design and implement software that is elegant, efficient, and correct, and whose code can be maintained and reused.

CS 3110 covers a broad range of topics, including:

  • Alternative programming paradigms, especially functional and concurrent programming
  • Writing and using specifications
  • Modular programming and data abstraction
  • Reasoning about program correctness
  • Reasoning about system performance
  • Useful and efficient data structures

A complete listing of topics can be found on the lecture notes page. Here is a diagram showing the course material and the dependencies among different parts of the course.

Functional Programming in Objective Caml (OCaml)

We use a programming language from the ML family of programming languages throughout the course: Objective Caml (OCaml). OCaml is a modern functional programming language with advanced type and module systems. However, the course is not about the OCaml language; rather, OCaml provides a convenient framework in which we can achieve the objectives of the course. Like the object-oriented model of Java, the functional paradigm of OCaml is an important programming model with which all students should be familiar, as it underlies the core of almost any high-level programming language. In addition, the OCaml type and module systems provide frameworks for ensuring code is modular, correct, re-usable, and elegant. In fact, OCaml does support objects, but we will focus more on other aspects of the language. By studying alternatives to object-oriented programming, students will be better equipped to use, implement or even design future programming environments that combine the best features of both worlds.

Another important reason we use OCaml is that it has a relatively clean and simple evaluation model that makes it easier to reason about the correctness of programs. In our studies, we will reason not only about the functional correctness of code, but also the space, time, and other resources used in a computation.

Staff

PHOTO NAME POSITION EMAIL/PHONE OFFICE HOURS
Nate Foster Instructor Turn on JavaScript to view email address 432 Gates M 2:30-3:30pm
Mike George Instructor Turn on JavaScript to view email address 447 Gates TR 11:15am-2:00pm
Jonathan DiLorenzo TA / Course Administrator Turn on JavaScript to view email address 305 Gates TR 2:30-3:30pm
Arjun Biddanda TA Turn on JavaScript to view email address 360 Upson M 9-11pm
Drew Weymouth TA Turn on JavaScript to view email address 360 Upson R 6-8pm
Ben Carriel TA Turn on JavaScript to view email address 360 Upson R 10-11:59pm
Ben Greenman TA Turn on JavaScript to view email address 360 Upson R 10-11:59pm
Harris Karsch TA Turn on JavaScript to view email address 360 Upson S 7-9pm
Jianneng Li TA Turn on JavaScript to view email address 360 Upson W 8-10pm
Muhammad Khan TA Turn on JavaScript to view email address 360 Upson M 9-11pm
Akshay Dongaonkar Consultant Turn on JavaScript to view email address 360 Upson TR 9-10am
Andy Wang Consultant Turn on JavaScript to view email address 360 Upson R 8-10pm
Ameya Acharya Consultant Turn on JavaScript to view email address 360 Upson T 5-7pm
Alex Guziel Consultant Turn on JavaScript to view email address 360 Upson W 9-11pm
Andrew Levine Consultant Turn on JavaScript to view email address 360 Upson T 7-9pm
Bryan Cuccioli Consultant Turn on JavaScript to view email address 360 Upson M 7-9pm
Tristan Zhang Consultant Turn on JavaScript to view email address 360 Upson R 8-10pm
Chie Shu Consultant Turn on JavaScript to view email address 360 Upson W 5-7pm
Chris Jung Consultant Turn on JavaScript to view email address 360 Upson R 5-7pm
Chris Yu Consultant Turn on JavaScript to view email address 360 Upson T 7-9pm
Giang Nguyen Consultant Turn on JavaScript to view email address 360 Upson W 5-7pm
Kenta Labur Consultant Turn on JavaScript to view email address 360 Upson S 7& 9pm
Michael Whittaker Consultant Turn on JavaScript to view email address 360 Upson S 8-10pm
Rebecca Coombes Consultant Turn on JavaScript to view email address 360 Upson M 7-9pm
Rene Zhang Consultant Turn on JavaScript to view email address 360 Upson T 5-7pm
Susan Chiang Consultant Turn on JavaScript to view email address 360 Upson M 5-7pm
Sara Boccabella Consultant Turn on JavaScript to view email address 360 Upson TR 9-10am
Will Bartlett Consultant Turn on JavaScript to view email address 360 Upson W 7-9pm
Mandy Guo Consultant Turn on JavaScript to view email address 360 Upson M 5-7pm
Jeff Tian Consultant Turn on JavaScript to view email address 360 Upson W 9-11pm

Staff Responsibilities

The teaching assistants (TAs) teach recitation sections and assist with homework and exams. All TAs hold regular office hours, and we encourage you to attend them if you have difficulties. The consultants are undergraduates who have excelled in their coursework and are employed as graders and tutors. They also hold regular office hours. The course administrator provides clerical and logistical support for the course. Please notify the course administrator of any errors or discrepancies in the website.

Consulting runs only when Cornell is in session. Consulting hours end at 6pm on a day following an assignment due date and 7pm on a prelim day. There are no consulting hours during official breaks. Consulting ends on the last shift on the last week of classes.

Course Administration

Website

The course website is http://www.cs.cornell.edu/courses/cs3110/. Announcements will be posted on the home page. Check periodically for new announcements.

Discussion Forum

We will be using Piazza for class discussion. Piazza is a web-based discussion forum for communication with classmates and the course staff. If you were preregistered, you should already have received a signup message from Piazza. If not, go here to get signed up.

The staff continuously monitor the forum and will respond to questions in a timely manner. This is the most efficient method of getting help and has the added advantage that others can benefit from your question. There is a link to our Piazza class page in the navigation bar above.

If you know the answer to a question, feel free to post a reply yourself, but please avoid giving away any hints on the homework or posting any part of a solution. This will be considered a violation of Academic Integrity. Generally, rough algorithms or non-solution-specific code fragments are ok if you need them to illustrate a point.

Refrain from emailing the course staff directly. For confidential matters, post a private question to Piazza. This is the most effective way for the course staff to manage such a large course.

If you have any problems or feedback for the Piazza developers, email team@piazza.com.

CMS

We are using the course management system CMS. Everyone who preregistered for the course is entered, but if you did not preregister, you are probably missing. Please login to http://cms.csuglab.cornell.edu/ and check whether you exist. There will be a list of courses you are registered for, and CS 3110 should be one of them. If not, please send your full name and Cornell netID to the Course Administrator so that you can be registered.

You can check your grades and submit homework in CMS. There is a help page with instructions.

Sources

Text

There is no official textbook for the course. However, here are some useful resources:

The last link contains many other resources on the Web for OCaml, including other tutorials, free compilers, libraries, etc.

Handouts

All handouts will be available either on the course web site or in CMS in pdf, html, or plain text format. Check often for new postings.

For viewing pdf files, we recommend Adobe Reader, available free of charge from Adobe.
Get Adobe Reader

Lectures and Sections

In the table below, LEC=lecture, DIS=recitation section, THR=Thurston, PHL=Phillips, UPS = Upson, T=Tuesday, R=Thursday.

Time and Place

ID SECTION DAY & TIME ROOM INSTRUCTOR
10965 LEC 001 TR 10:10AM - 11:00AM Olin 155 Foster
11392 SEC 001 MW 10:10AM - 11:00AM Philips 307 Li
11393 SEC 002 MW 2:30PM - 3:20PM Hollister 320 Carriel / Greenman
11394 SEC 003 MW 2:30PM - 3:20PM Philips 307 Khan / Biddanda
12581 SEC 004 TR 3:35PM - 4:25PM Upson 211 George
17272 SEC 005 MW 3:35PM - 4:25PM Hollister 320 Foster
17273 SEC 006 MW 7:30PM - 8:20PM Hollister 320 Karsch
17274 SEC 007 TR 1:25PM - 2:15PM Upson 109 DiLorenzo
17275 SEC 008 TR 3:35PM - 4:25PM Upson 109 Weymouth

Attendance

Attendance at lecture and section is mandatory. Section will cover new material not covered in lecture and provide an opportunity for questions on recent material, assignments, and exams. You must register for a section, but you may attend any section. However, we prefer that you select one and stay with it.

Occasionally section instructors temporarily move their section to a computer lab. Pay attention to announcements to keep track of any room changes.

Notes

Lecture and section notes will be available on the lecture notes page.

Programming Assignments

There will be six problem sets. Each problem set will involve a programming assignment and may include written exercises and optional karma problems. Posted due dates are subject to change. Assignments are due at 11:59pm on the due date.

You should try to get started on assignments early. The best use of your time and the machine's time is to think about the problems before typing anything at the computer.

Karma Problems

Assignments may include optional problems called karma problems. These problems exist to provide an extra challenge for those who are up to it. Karma problems will be graded, but will not affect your score—they mostly just give good karma. Students who do karma problems will be noticed, and doing them may be taken into account when assigning the final grade, for example if you are right on the line between a B+ and an A–. However, spending your time on regular problems is almost always a more effective way to improve your overall score. Tackle karma problems only after you are sure you have the rest of the assignment well in hand.

Joint Work

Some assignments will be done individually, others in pairs. We will let you know which in the assignment writeup. For assignments done in pairs, you will submit a single joint assignment with both names on it. You must form a group in CMS to do this.

Under no circumstances may you collaborate on the homework with anyone except your partner or misrepresent the authorship of your submitted work. Please see the section on Academic Integrity below.

Submission

You must submit your work online via CMS. Follow the online instructions for submitting files.

You may upload as many times as you wish, and only the latest version will be graded. Note however that if you upload both before and after the deadline, the one after the deadline will be taken, and you will be subject to a late penalty.

If you are working with a partner, you should coordinate with your partner well in advance of the due date and time. You must register the partnership in CMS for each problem set. One of the partners must invite the other, and the other must accept the invitation. See the CMS online help for details. Only one of the partners need submit the files.

Please be careful to submit the correct versions of your files. We will view the excuse "I accidentally submitted the wrong version" with extreme skepticism (we have heard it countless times).

Please include the names and netIds (not your Cornell student id!) of you and your partner in all submitted files.

Late Policy

Submit your assignments on time. CMS tends to lag right near the deadline because too many students wait until the last minute to submit, so make sure to finalize your submission approximately 15 minutes before the deadline.

Additionally, make certain that your code compiles. We use an automated test harness to thoroughly grade submissions. Code which does not compile cannot go through the harness and will receive an automatic zero. However, to avoid over-penalizing students for small typographical or cross-platform errors, the course staff will notify students if their submission did not compile and grant a 24 hour window to correct the error with a small (2-3 line) fix. If, after applying the fix, your code runs smoothly through the harness, it will receive no point deductions and be graded as if it were submitted correctly and on time.

Late submissions will not be accepted. If you submit after submissions close on CMS, you will receive no credit for the assignment. The size of this course hinders our ability to deal with abberations in the grading schedule. In order to provide timely feedback, the course staff needs to receive submissions when they are due. That said, we understand that the responsiblities of a full courseload may become overbearing. Hence each student will be granted two (2) slip days for assignments. Using a slip day grants one an additional 48 hours to submit the assignment. (On partner assignments, both partners must relinquish a slip day in order to receive an extension). Unfortunately, this policy conflicts with the above no-compile grace period, so slip-day submissions must compile, or else shall receive minimal credit. As always, you may include a README in your submission to convey information to the graders.

Extensions will be granted only in exceptional circumstances, such as documented illness, and are handled exclusively by the professor.

Exams

There will be two preliminary exams and a final exam. Exams will cover material presented in class and in recitation. The exam schedule can be found here.

Makeup exams must be scheduled within two weeks of the start of class. Check now to see if you have a conflict with another class and contact the course staff immediately to reschedule.

By University policy, courses are not obligated to provide makeup exams for students taking concurrent courses, and we will not do so in this course. The Courses of Study states: "Students are expected to be present throughout each semester at all meetings of courses for which they are registered."

Practice Exams

Exams from previous semesters will be posted on CMS prior to the exam.

Grading

Grading is normally done the weekend after the due date, and assignments returned the following week in section. Grader's comments will be posted on CMS.

Regrades

For all graded work, you may request a regrade if you feel we have made an error in the grading or simply to request a clarification. There is a deadline for regrade requests, normally one week after grades have been posted.

Regrades for problem sets are done using CMS. Follow the online instructions.

For exams, attach a cover sheet to your exam with a description of the problem and submit it to the Course Administrator in person so that your request can be logged.

Academic Integrity

The utmost level of academic integrity is expected of all students. Please read the following carefully.

Under no circumstances may you hand in work done with or by someone else under your own name or share code with anyone else except your partner. (You would be amazed at how easy it is to tell when code has been shared.) You may discuss general questions regarding the OCaml language or the requirements of the assignment with others, but it must never go down to the level of program design or coding.

All exams are closed book. You may not give nor receive assistance from anyone else during an exam.

You may not give away any hints or post any code that might be part of a solution on Piazza. Rough algorithms or non-solution-specific code fragments are ok if you need them to illustrate a point.

If you are unsure about what is permissible and what is not, please ask.

Special Needs

We provide appropriate academic accommodations for students with special needs and/or disabilities. Requests for academic accommodations are to be made during the first three weeks of the semester and must be accompanied by official documentation. Please register with Student Disability Services in 420 CCC to document your eligibility.