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.

Build my COS 240 study plan

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.

  6. 6

    Space the proof reps with Fennie

    Upload your COS 240 syllabus and Fennie's Daily Plan spaces proof, combinatorics, and probability practice across the weeks, gives the theory units extra runway, and syncs review to exams — with quizzes from the actual content. Free to start.

    Start my COS 240 plan free

How Fennie helps with COS 240

Fennie's Daily Plans space COS 240's proof and probability practice across the term, with the abstract complexity and cryptography units given extra runway and review synced to exams. Chat works through why a proof is valid or where its logic breaks, building the rigorous-argument skill the exams grade over the intuition that earns nothing.

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.

Pass COS 240 with a plan, not a cram

Upload your COS 240 materials and Fennie generates a Daily Plan paced to your deadline — plus chat, flashcards, and quizzes built from the actual course content.

Get started free

More Princeton courses