COS 240: Reasoning about Computation

Princeton University · Spring 2026

Lectures

You are required and expected to attend the lectures. Your lecture attendance and participation are important to your success in the course.

Some material covered in lectures may not appear in the textbooks or precepts. Some exam questions may reward lecture attendance. Quizzes, which are part of your grade, will also be taken during lectures.

Location is found in the course's registrar page.

Precepts

You are required and expected to attend your precept (the one you registered in in TigerHub). Participation is encouraged: listen attentively, ask occasional questions, and answer questions when appropriate. Your precept attendance and participation are important for your success and may affect your grade (see Grading Scheme).

Occasionally attending another precept due to conflicts is acceptable if you notify both preceptors. Attending additional precepts beyond your own occasionally requires prior email permission from both preceptors. Regularly attending other precepts is not permitted and can affect your grade (see Grading Scheme).

Location is found in the course's registrar page.

Message Boards and Electronic Communication

The course's message boards

The course uses Ed Discussion as its message boards for this semester.

Enrollment: You are enrolled in the message boards by the course's teaching staff the moment you officially enroll in the course. Joining the course's message boards is required (you can not continue with the course as an officially enrolled student if you have not joined the course's message boards).

Access: You can access the course's message boards by following the steps below:

If you are having trouble accessing the course's message boards, please contact your preceptor right away.

💬 Electronic communication policies

These are the course's policies concerning electronic communication:

In this context, the phrase any part of your assignment solution includes:

Assignment Conduct

There are two types of assignments. No-collaboration assignments and Collaboration-allowing Assignments.

👤 No-collaboration assignments
  • ❌ You may not discuss the Assignment problems with other students.
  • ✅ You may discuss the Assignment with course staff (Faculty Teaching Staff, Graduate TAs, Lab TAs).
  • 📌 You must write your solutions entirely on your own.
👥 Collaboration-allowing assignments
  • ✅ Work in groups of up to 3 students of the course; same group for all problems in the Assignment.
  • ❌ Do not discuss ideas with others outside your group (except with course staff).
  • 📌 List all collaborators at the top of your PDF. If none, state: "Collaborators: None."
  • 📌 Discard notes after discussion.
  • 📌 Your solutions must be written independently by you. ❌ Writing/typing together with others is prohibited.

⚠️ In all cases, sharing your assignment solutions with another student or making your assignment solutions available online is strictly prohibited.

Quick comparison: Assignment rules overview

Policy area No-collaboration Collaboration-allowing
Who you may discuss with Only course staff Your collaborators (at most 2) and course staff
Group size None (work alone) Up to 3 students of the course;
same group for entire assignment
Writing solutions 📌 Must be written independently by you 📌 Must be written independently by you
Notes from discussion 🗑️ Discard before writing
Use of Generative AI ❌ Not allowed ❌ Not allowed
Collaborator statement State "Collaborators: None"
(assuming you did not collaborate as per assignment policy)
List all collaborators at the start of your solutions document

Regarding receiving help

Submission format

Submit one typed PDF document per assignment (preferably using the LaTeX templates we provide) that contains your solutions for that assignment. You will submit through the TigerFile link we will provide. Include your name, assignment number, and collaborators at the top of the file. Do not submit handwritten solutions; they will not be accepted.

Retaking COS 240

Penalties for plagiarism

Assignment Late Submission

⏳ Late Day Allowance

You may use up to 4 late days throughout the semester, but not more than 2 late days on a given assignment. Using one late day on an assignment extends the due date/time by 24 hours; using two late days extends it by 48 hours. Late days must be used in whole-day (integer) increments. Your late day usage up to and including the current assignment is posted on Canvas after you submit that assignment.

Late day rules

Rule Limit
Total late days per semester 4
Max late days per assignment 2
1 late day 24-hour extension
2 late days 48-hour extension
Fractional (non-integer) late days ❌ Not allowed

⚠️ Extraordinary Circumstances

Outside of this policy, no late submissions will be accepted unless there are extraordinary circumstances involved. Extensions are granted only in the case of illness (with a doctor's note) or other extraordinary circumstances. If illness or other extraordinary circumstances will cause you to submit an assignment late, discuss 📧 the matter with your Preceptor as soon as possible (before the assignment's deadline has passed).

⚠️ Heavy workload, travel, or religious holidays are not extraordinary circumstances. We can not grant extensions in such cases.

🗑️ File Removal Policy

You may remove a submitted assignment file only within 48 hours of the assignment deadline. This window is independent of any late days used.

Quizzes

Quizzes are short, in-person exams that take place during Lectures. More details regarding Quizzes are provided in Lecture 1.

📝 Rules

⏰ Missed Quizzes

📧 Missing Quiz For Valid Reasons

Email Prof. Raz (CCing your Preceptor) within 2 days (48 hours) of the missed Quiz explaining the reason you missed the Quiz. If approved, the missed Quiz's weight is added to your Final Exam weight. Otherwise, your score for that Quiz remains 0. (Such an approval can only come from Prof. Raz)

⚠️ Reminder: Quizzes are conducted under the Princeton University Honor System. Students taking a Quiz will be required to fully write out and sign the honor pledge "I pledge my honor that I have not violated the Honor Code during this examination".

Final Exam

The final exam is a registrar-scheduled final exam. It will be conducted in-person and will be scheduled by the Registrar's Office.

📝 Rules

⚠️ Reminder: The final exam is conducted under the Princeton University Honor System. Students taking the Final Exam will be required to fully write out and sign the honor pledge "I pledge my honor that I have not violated the Honor Code during this examination".

Asking for regrades

Keep in mind the following when you are asking for a regrade on Assignments, Quizzes or the Final Exam.

Grading Scheme

The course percentage grade for each student is calculated as the maximum of two grading methods:

Method 1

Component Weight
Assignments 35%
Participation 10%
Quizzes 15% *
Final Exam 40% *

Method 2

Component Weight
Assignments 35%
Quizzes 15% *
Final Exam 50% *

* Remember that if a Quiz was missed for a valid reason the weight of the Quiz moves (is added to) to the weight of the final exam (see also Quizzes section)

Component calculations

Assignments: The assignments percentage score is calculated as the following weighted average:

Formula for the Assignment Percentage Calculation
$$\text{Assignments percentage score} = \frac{0.25 \cdot (\text{lowest assignment score}) + \sum (\text{remaining assignments' percentage scores})}{4.25}$$
📄 Example: (click to expand)

Suppose your five assignment percentage scores are 60%, 80%, 85%, 90%, and 95%. The lowest is 60%. Then the assignments' percentage score is:

Example Calculation
$$\text{Assignments percentage score} = \frac{0.25 \cdot 60 + (80 + 85 + 90 + 95)}{4.25} = \frac{15 + 350}{4.25} = \frac{365}{4.25} \approx 85.88$$

Quizzes: Average of the Quizzes' percentage scores. Each Quiz is weighed equally.

📄 Example: (click to expand)

Suppose there are two Quizzes this semester, and your percentage scores are 60% and 90% for each Quiz. Then the Quiz's percentage score is 75% (see below):

Example Calculation
$$\text{Quiz percentage score} = \frac{60+90}{2} = 75$$

Participation:

📄 Example calculation of the course percentage grade (click to expand)

Let us assume that a student has the following percentage scores at the end of the semester.

  • Assignment 1 score: 75%, Assignment 2 score: 90%, Assignment 3 score: 88%, Assignment 4 score: 81% and Assignment 5 score: 78%. Their Assignment Percentage score is:
    Assignment Percentage Score in the Example
    $$\frac{0.25 \cdot 75 + (90 + 88 + 81 + 78)}{4.25} = \frac{15 + 350}{4.25} \approx 83.71$$
  • Participaton Score: 10%
  • The student has taken all Quizzes and their Average Percentage score in the Quizzes is: 75%.
  • Final Exam Percentage score: 65%.

The student's course percentage grade based on Method 1 is

Course Percentage Grade according to Method 1
$$ 0.35\cdot 83.71 + 10 + 0.15 \cdot 75 + 0.4 \cdot 65 \approx 76.55$$
while the student's course percentage based on Method 2 is
Course Percentage Grade according to Method 2
$$ 0.35\cdot 83.71 + 0.15 \cdot 75 + 0.5 \cdot 65 \approx 73.05$$

Hence, the student's course percentage grade is 76.55% (see below for calculation).

Course Percentage Grade
$$\max\{76.55, 73.05\} = 76.55$$