Objectives
The course aims at providing the theoretical bases for understanding two fundamental properties of computational problems.
-
Given a problem, at first we will be concerned about its computability:
- Is there a method to solve the problem?
- Can we describe this method in an unequivocal way?
- Is there a universal "language" for such task?
- Are there any intrinsically unsolvable problems?
-
When a problem is found out to be solvable, we can wonder how efficiently it can be done.
- What are the meaningful criteria to express how hard a problem is?
- Is there a way to classify problems with respect to their hardness?
- Does this classification tell us anything about the limits of our capability to solve problems?
Entrance requirements
Students should have a basic understanding of the following topics:
- Mathematical logic: logical connectives, quantifiers, basic propositional calculus; being able to follow the proof of simple theorems.
- Mathematics: polynomials, logarithms, exponentials; positional representation of integers in different bases.
- Programming, algorithms and data structures: knowledge of a specific programming language is not required, but being able to describe algorithms and data structures is essential.
Program outline
For the actual program, see below.
-
Computability
- Turing machines.
- Decidable languages and computable functions.
- The Halting Problem.
- Other undecidable languages and uncomputable functions.
- Rice's Theorem.
-
Computational Complexity
- Problem instance size, measures of complexity, classification of problems.
- Time complexity classes: P, NP, EXP. NP-completeness. Cook-Levin Theorem. Study of NP-complete problems.
- Space complexity classes: LOGSPACE, NLOGSPACE, PSPACE, NPSPACE. Savitch's theorem.
Expected learning outcomes
At the end of the course, students will be able to:
- Describe problems and problem instances in a formally precise way.
- Describe the solution of simple problems in terms of a universal computational model (the Turing Machine).
- Prove that a specific problem (Turing's halting problem) is not computable, and recognize the importance of this result.
- Apply the formal notion of reduction in order to extend properties of known problems to new ones.
- Identify quantitative criteria to describe the complexity of an algorithm with respect to instance size.
- Describe the main time and space complexity classes, and their inclusion relationships.
- Define what it means for a problem to be complete for a class.
- Prove that a specific problem (SATISFIABILITY) is complete in the NP class (Cook-Levin Theorem).
- Discuss the P vs. NP problem and its main implications on various branches of computer science.
- Analyze how extensions of the basic computing model (randomness, quantum computing) can benefit the solution of some problem classes.
Teaching and learning methods and activities
The course will mainly consist of lectures and discussions with students.
As soon as specific milestones are reached, exercises and papers will be proposed for self-assessment and further discussion.
Since the beginning of the course, the previous year's material will be made available on this website (in the materials section below):
- Lecture notes
- Example code
- Solved exercises
- Exam sheets from previous years
- Relevant papers and webpages.
The material will be updated during the semester.
Textbooks
The following books may be useful, but none is mandatory. References to online material will be provided in the
course program section.
Sanjeev Arora and Boaz Barak.
Computational Complexity: A Modern Approach.
Cambridge University Press, 2009.
ISBN 9780521424264
[Draft of the book]
Christos H. Papadimitriou.
Computational complexity.
Addison Wesley (Pearson College Div.), 1994.
ISBN 9780020153085
John E. Hopcroft, Rajeev Motwani, and Jeffrey D. Ullman.
Introduction to Automata Theory, Languages and Computation.
Pearson new International Edition, 2013.
ISBN: 9781292039053
Test and assessment criteria
The exam is written, pen and paper, in English, and is composed by three open-question exercises requiring to expose theoretical topics and analyze problems and algorithms. One of the exercises is about computability, the other two are mainly about the computational complexity topic. The three exercises have an equal weight in determining the final mark.
Answers are evaluated on the basis of the following criteria:
- Correctness: the answers must follow a logical path, consistent with the course topics and with the question; however, given that the discipline is still young, personal opinions are welcome, as long as they are motivated.
- Relevance: going off-topic in the hope to collect some points doesn't usually work.
- Motivation: the answers provided by the student must enable the examiner to follow the logical path leading to their formulation; answers without explanations are not taken into account.
- Clarity: short and precise answers, with the correct use of technical terminology and without ambiguities are preferred.
Students have free access to the exam sheets of the previous sessions on the course website.
Quick stats
In the winter and summer exam sessions of 2024, 61 registrants out of 66 have passed the exam (38 out of 42 in the first exam in January).