EPFL · CS-250 Algorithms
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.
- Finals analysed
- 14
- Years
- 2011 → 2024
- Exercises
- 138
- Topics
- 16
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.
Max-flow, min-cut and bipartite matching
14.5%in 14 of 14 finalsHow it’s askedRun Ford-Fulkerson by hand on a small network, then model an assignment problem as a flow and back the answer with a cut.
Common trapLeaving 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
13.0%in 10 of 14 finalsHow it’s askedRead a recursive procedure, write its recurrence and give a tight Θ bound, often as a matching or a blank to fill with no justification.
Common trapApplying 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
11.6%in 12 of 14 finalsHow it’s askedDefine the subproblems, write the recurrence with its base cases, fill the table bottom-up and state the running time.
Common trapDropping 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)
11.6%in 11 of 14 finalsHow it’s askedList 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 trapGiving 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
8.0%in 8 of 14 finalsHow it’s askedInsert keys into a chained hash table by hand, and bound the expected number of collisions with indicator variables.
Common trapCounting elements instead of pairs: the expected number of colliding pairs grows like n²/m, not n/m.
Shortest paths (Dijkstra, Bellman-Ford)
7.2%in 6 of 14 finalsHow it’s askedFill a distance table step by step, or adapt Dijkstra to a graph where time is part of the state.
Common trapRunning Dijkstra with negative edges, stopping Bellman-Ford before |V| − 1 rounds, or giving the distances without the paths.
Stacks, queues and binary search trees
5.1%in 5 of 14 finalsHow it’s askedTrace operations on a stack, a queue or a binary search tree, or design a structure that answers a query in O(1).
Common trapDeleting a node with two children by promoting a child instead of its successor.
Asymptotic growth and counting running time
4.3%in 5 of 14 finalsHow it’s askedRank a list of functions by growth, answer only, and count the iterations of nested loops.
Common trapMisplacing functions such as n^√n against true exponentials, or quoting the typical case when the worst case is asked.
The other 8 topics
- Divide and conquer: algorithm design4.3%in 5 of 14 finals
- Sorting and selection (randomised QuickSort and Select)4.3%in 4 of 14 finals
- Heaps and priority queues3.6%in 4 of 14 finals
- Probabilistic analysis and randomised algorithms3.6%in 4 of 14 finals
- Tree algorithms (diameter, dynamic programming on trees)3.6%in 4 of 14 finals
- Graph traversal (BFS, DFS, topological order)2.2%in 3 of 14 finals
- Greedy and online algorithms1.4%in 2 of 14 finals
- Formal specification and two-pointer scan1.4%in 1 of 14 finals
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 algorithmDescribe the algorithm, argue it is correct and give its running time. | 37% | 56% |
| Short answerA Θ bound, a ranking of functions, a recurrence matched to its growth. | 22% | 13% |
| Multiple choiceOne answer among several, often a Θ bound or an order. | 16% | 10% |
| Run an algorithm by handResidual networks, distance tables, trees and hash tables, drawn step by step. | 12% | 12% |
| Written proofA bound, a property of a structure, or a counterexample. | 11% | 9% |
| Other | 2% | 1% |
Each exercise is sorted by the form Cortex noted while reading the paper. Points are known for 132 of the 138 exercises.
How to revise, from the data
- Start with flows: max-flow and min-cut came up in all 14 finals, as a hand run and as a modelling question.
- Then the other three big topics. Recurrences, dynamic programming and spanning trees bring the top four to 51% of the exercises.
- 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.
- 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? tool runs the same count on your own past papers, and Cortex 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.