Skip to main content
Princeton
Computer Science

Princeton COS 240: Reasoning About Computation

COS 240 is Princeton's foundational theory course: mathematical proof, combinatorics, probability, graph theory, and an introduction to theoretical computer science including computability, complexity, and cryptography. It's a required CS core course that builds the rigorous reasoning the upper-level theory courses assume.

Fennie is independent and not affiliated with Princeton University. This is an unofficial study guide.

What makes it hard

For students whose strength is coding, the shift to rigorous proof is the wall: a proof is valid or it isn't, and intuition earns nothing without a correct argument. The probability unit is substantial and the complexity and cryptography material is abstract, so exams reward precise reasoning over computation, inverting how most students studied for their programming courses.

What you'll cover

  • Mathematical proof techniques
  • Combinatorics and counting
  • Probability theory
  • Graph theory
  • Computability and complexity
  • Introduction to cryptography

The COS 240 study guide

How to study for Princeton COS 240, step by step.

  1. 1

    Treat proof-writing as the core skill

    COS 240's shift is from code that runs to arguments that are valid. Write full proofs, not sketches, from the start and get them critiqued, because exams grade rigor, not intuition.

  2. 2

    Give probability heavy practice

    A large chunk of the course is probability, and it's a common stumble for CS students. Work many problems, since probabilistic reasoning rewards volume far more than rereading.

  3. 3

    Build a proof-technique toolbox

    Direct, contrapositive, contradiction, induction, counterexample: know which the problem shape wants before writing. Picking the wrong technique is a frequent reason proofs stall.

  4. 4

    Internalize the theory, don't memorize it

    Computability, complexity, and cryptography are abstract. Work small examples until the ideas are intuitive, because exam questions test understanding you can't fake by recall.

  5. 5

    Write proofs cold under time

    Before each exam, produce proofs from blank paper without notes. Rereading worked solutions teaches recognition, not production, and the exam tests production.

Today

Today's COS 240 plan

Preview
65 min

What a Fennie Daily Plan looks like for COS 240. Yours is built from your own syllabus and adapts every day to your deadlines and progress.

0 / 4 done~65m remaining
Keep this plan free

First plan free, no card required. Fennie is independent and unaffiliated with your school.

FAQ

Is COS 240 at Princeton hard?

It's hard for the specific reason that it's a proof and theory course, not a coding course. Strong programmers often struggle because rigor is graded, not intuition, and the probability and complexity material is substantial. Drilling proofs from scratch is what closes the gap.

How do I study for COS 240?

Write full proofs cold, without notes, before each exam; production, not recognition, is tested. Build a toolbox of proof techniques, give probability heavy practice since it's a common stumble, and work small examples of the theory until it's intuitive.

What was COS 240 called before?

It was previously offered as COS 340. The content (proof, combinatorics, probability, graph theory, and theory of computation) is the same foundational reasoning required of CS concentrators, typically completed by the end of junior year.

More Princeton courses