# What comes up in the EPFL CS-250 Algorithms exam?

Cortex sorted all 138 exercises from 14 finals (2011 to 2024) by topic. Four topics make up 51% of them, and max-flow has been on every paper.

EPFL · CS-250 Algorithms · Page: https://cortexexam.com/epfl-cs-250-exam
Last analysis: June 2026

## The topics, ranked by weight

Weight is the share of the 138 exercises that tested the topic. The finals count says how many of the 14 papers had at least one.

| # | Topic | Weight | Finals |
|---|---|---|---|
| 1 | Max-flow, min-cut and bipartite matching | 14.5% | 14 of 14 |
| 2 | Recurrences and the master theorem | 13.0% | 10 of 14 |
| 3 | Dynamic programming: recurrence, table and reconstruction | 11.6% | 12 of 14 |
| 4 | Minimum spanning trees (Prim, Kruskal, properties) | 11.6% | 11 of 14 |
| 5 | Hashing: collisions and load | 8.0% | 8 of 14 |
| 6 | Shortest paths (Dijkstra, Bellman-Ford) | 7.2% | 6 of 14 |
| 7 | Stacks, queues and binary search trees | 5.1% | 5 of 14 |
| 8 | Asymptotic growth and counting running time | 4.3% | 5 of 14 |
| 9 | Divide and conquer: algorithm design | 4.3% | 5 of 14 |
| 10 | Sorting and selection (randomised QuickSort and Select) | 4.3% | 4 of 14 |
| 11 | Heaps and priority queues | 3.6% | 4 of 14 |
| 12 | Probabilistic analysis and randomised algorithms | 3.6% | 4 of 14 |
| 13 | Tree algorithms (diameter, dynamic programming on trees) | 3.6% | 4 of 14 |
| 14 | Graph traversal (BFS, DFS, topological order) | 2.2% | 3 of 14 |
| 15 | Greedy and online algorithms | 1.4% | 2 of 14 |
| 16 | Formal specification and two-pointer scan | 1.4% | 1 of 14 |

### Max-flow, min-cut and bipartite matching

How it’s asked: Run Ford-Fulkerson by hand on a small network, then model an assignment problem as a flow and back the answer with a cut.

Common trap: Leaving out the reverse edges of the residual graph, or giving a cut value without the vertices on each side. When a vertex may be used once, split it into an in-node and an out-node.

### Recurrences and the master theorem

How it’s asked: Read a recursive procedure, write its recurrence and give a tight Θ bound, often as a matching or a blank to fill with no justification.

Common trap: Applying the master theorem to a recurrence that shrinks by subtraction (n − 1) instead of division, or keeping a log factor that the dominant term absorbs.

### Dynamic programming: recurrence, table and reconstruction

How it’s asked: Define the subproblems, write the recurrence with its base cases, fill the table bottom-up and state the running time.

Common trap: Dropping a dimension of the state (a capacity, a time budget) and announcing a running time that is too small, or forgetting the cost of computing one cell.

### Minimum spanning trees (Prim, Kruskal, properties)

How it’s asked: List the edges in the order Prim or Kruskal adds them, then prove a property of minimum spanning trees with the cut or cycle argument.

Common trap: Giving Kruskal’s order (sorted by weight) when Prim’s is asked, or mixing up Prim’s tree with the shortest-path tree of Dijkstra.

### Hashing: collisions and load

How it’s asked: Insert keys into a chained hash table by hand, and bound the expected number of collisions with indicator variables.

Common trap: Counting elements instead of pairs: the expected number of colliding pairs grows like n²/m, not n/m.

### Shortest paths (Dijkstra, Bellman-Ford)

How it’s asked: Fill a distance table step by step, or adapt Dijkstra to a graph where time is part of the state.

Common trap: Running Dijkstra with negative edges, stopping Bellman-Ford before |V| − 1 rounds, or giving the distances without the paths.

### Stacks, queues and binary search trees

How it’s asked: Trace operations on a stack, a queue or a binary search tree, or design a structure that answers a query in O(1).

Common trap: Deleting a node with two children by promoting a child instead of its successor.

### Asymptotic growth and counting running time

How it’s asked: Rank a list of functions by growth, answer only, and count the iterations of nested loops.

Common trap: Misplacing functions such as n^√n against true exponentials, or quoting the typical case when the worst case is asked.

## Year by year

Number of exercises each final gave to the 8 biggest topics.

| Topic | 2011 | 2012 | 2013 | 2014 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 2023 | 2024 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| max-flow | 1 | 1 | 2 | 3 | 3 | 1 | 1 | 1 | 1 | 2 | 1 | 1 | 1 | 1 |
| recurrences | 0 | 1 | 1 | 0 | 0 | 2 | 3 | 3 | 3 | 2 | 1 | 0 | 1 | 1 |
| dynamic programming | 0 | 1 | 2 | 1 | 1 | 1 | 1 | 1 | 2 | 2 | 1 | 1 | 0 | 2 |
| minimum spanning trees | 0 | 2 | 1 | 1 | 0 | 1 | 1 | 1 | 2 | 0 | 2 | 2 | 1 | 2 |
| hashing: collisions and load | 0 | 0 | 0 | 2 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 2 | 2 | 1 |
| shortest paths (Dijkstra, Bellman-Ford) | 1 | 0 | 0 | 0 | 3 | 0 | 0 | 1 | 0 | 0 | 1 | 2 | 2 | 0 |
| stacks, queues and binary search trees | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 | 0 | 1 | 1 | 0 |
| asymptotic growth and counting running time | 0 | 2 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 |

## What the questions look like

| Form | Share of exercises | Share of points |
|---|---|---|
| Design and analyse an algorithm | 37% | 56% |
| Short answer | 22% | 13% |
| Multiple choice | 16% | 10% |
| Run an algorithm by hand | 12% | 12% |
| Written proof | 11% | 9% |
| Other | 2% | 1% |

## How to revise, from the data

1. Start with flows: max-flow and min-cut came up in all 14 finals, as a hand run and as a modelling question.
2. Then the other three big topics. Recurrences, dynamic programming and spanning trees bring the top four to 51% of the exercises.
3. Write full designs, not sketches. Questions that ask you to design and analyse an algorithm are 37% of the exercises but 56% of the points.
4. Make the answer-only formats automatic: Θ bounds, function rankings and hand traces are often asked without justification, so only the final answer counts.

## Questions

### What comes up most in the CS-250 exam?

Max-flow (14.5% of exercises), then recurrences (13.0%), dynamic programming (11.6%) and minimum spanning trees (11.6%). Together they make up 51% of the 138 exercises in 14 finals from 2011 to 2024.

### Which topics come up in every CS-250 final?

Only one came up in all 14 finals: max-flow. The next most regular are dynamic programming (12 of 14) and minimum spanning trees (11 of 14).

### What do the CS-250 exam questions look like?

By share of exercises: design and analyse an algorithm 37%, short answer 22%, multiple choice 16%, run an algorithm by hand 12%, written proof 11%, other 2%. By share of points: design and analyse an algorithm 56%, short answer 13%, multiple choice 10%, run an algorithm by hand 12%, written proof 9%, other 1%.

### How many past exams is this based on?

14 finals (2011 to 2024), 138 exercises in total, analysed by Cortex. Last analysis: June 2026.

### Can I get the same for my own course?

Yes. The free [What’s on my exam?](https://app.cortexexam.com/whats-on-my-exam) tool runs the same count on your own past papers, and [Cortex](https://app.cortexexam.com) then builds mock exams in your course’s format.

## How these numbers were counted

Cortex read each of the 14 finals, split it into exercises and linked each exercise to one topic of the course. A topic’s weight is its share of all 138 exercises, the same count Cortex uses to rank a syllabus. No exam statement is reproduced: the descriptions on this page were written for it. Last analysis: June 2026.

- Free tool, for your own past papers: https://app.cortexexam.com/whats-on-my-exam
- Mock exams in your course’s format: https://app.cortexexam.com
- All analysed courses: https://cortexexam.com/exams
