CS 241 — Foundations of Sequential Programs
[UW Logo]

CS 241 — Foundations of Sequential Programs

Supported by the Instructional Support Group.

University of Waterloo : Faculty of Mathematics : School of Computer Science

General Information

Current Term (Spring 2017)

Jump to: PiazzaMarmosetGeneral InformationMidterm InformationAssignmentsResourcesTutorial MaterialsAcademic Integrity PolicyGet Your Lecture Access Card


General Information


Assignments must be submitted using the Marmoset Submission and Testing Server.

Read the following rules on using Marmoset.

Click here to check on Marmoset's status

Assignments will be added throughout the term.


You may go to any section, regardless of whether you're enrolled in it or not.

Tutorial Materials

Useful Reference Material

Additional Material for Assignment 1 (and beyond)


We will be using Piazza in CS 241. Piazza provides a forum for students to discuss and ask questions about course material and assignments.

If you are enrolled in the course, a Piazza invitation should be sent to your UW email address. After you have signed up, you can access the Piazza forum for the course here.

We encourage you to use Piazza regularly. It is a handy and timely way for students to learn from each other and the course staff. Essential announcements will be posted to Piazza.

Read the following rules on using Piazza.

Additional Reading

The first two and a half chapters of the CS 251 textbook give an introduction to CPUs, machine language, and the MIPS architecture: Patterson, Hennessy. Computer Organization and Design.

Most books about compilers begin with material about scanners and parsers, which we cover in the second half of the course. One example of a book with clear explanations is: Appel. Modern Compiler Implementation in Java.

Recommanded Reading: Basic of Compiler Design by Torben Mogensen.

Various books document the MIPS instruction set in great detail. One example is: Kane, Heinrich. MIPS RISC Architecture.

Language-Specific Tutorials



Academic Integrity Policy

Academic Integrity

In order to maintain a culture of academic integrity, members of the University of Waterloo community are expected to promote honesty, trust, fairness, respect and responsibility. All members of the UW community are expected to hold to the highest standard of academic integrity in their studies, teaching, and research.

The Office of Academic Integrity's website contains detailed information on UW policy for students and faculty.

This site explains why academic integrity is important and how students can avoid academic misconduct. It also identifies resources available on campus for students and faculty to help achieve academic integrity in - and out - of the classroom.


A student who believes that a decision affecting some aspect of his/her university life has been unfair or unreasonable may have grounds for initiating a grievance. Read Policy 70 - Student Petitions and Grievances, Section 4.


A student is expected to know what constitutes academic integrity, to avoid committing academic offenses, and to take responsibility for his/her actions. A student who is unsure whether an action constitutes an offense, or who needs help in learning how to avoid offenses (e.g., plagiarism, cheating) or about "rules" for group work/collaboration should seek guidance from the course professor, academic advisor, or the Undergraduate Associate Dean. When misconduct has been found to have occurred, disciplinary penalties will be imposed under Policy 71 - Student Discipline. For information on categories of offenses and types of penalties, students should refer to Policy 71 - Student Discipline.

Avoiding Academic Offenses

Most students are unaware of the line between acceptable and unacceptable academic behaviour, especially when discussing assignments with classmates and using the work of other students. For information on commonly misunderstood academic offenses and how to avoid them, students should refer to the Faculty of Mathematics Cheating and Student Academic Discipline Policy.


A student may appeal the finding and/or penalty in a decision made under Policy 70 - Student Petitions and Grievances (other than regarding a petition) or Policy 71 - Student Discipline if a ground for an appeal can be established. Read Policy 72 - Student Appeals.

Valid XHTML 1.0 Strict