TIN093/DIT602, Period 1, 2020: Algorithms



Email: add "(at)chalmers.se", unless said otherwise.

Student Assistants

Doing part of the assignment grading only. Email: add "(at)student.chalmers.se", unless said otherwise.

Student Representatives


Exam Aids

Basically everything, as it will be a home exam.

Some old exams: 2020 (Aug.) 2019 2018 2017 2016 2015


We use the method of replacing lectures by study instructions, accompanied by self-test questions (quizzes) and question/answer online meetings for personal contact. Moreover, voluntary assignments are given, as in normal years.

For the sake of efficient support and proper scheduling of the exercises, we assume that you study each part of the Lecture Notes until the date when the lecture normally would have been scheduled.

Do not hesitate to send many emails (primarily to the instructor) about any questions you need help with. The time freed by not giving lectures is available for more extensive help - please make use of this resource.

Online exercise sessions: see the Canvas page.

Lecture Notes

Numbers indicate the related book sections. (Note: Chapters have different numbers in some editions of the book, in particular, chapters 4 and 5 are swapped. But it should be easy to recognize this and find the correct chapters by their titles anyway.) Sections with the label "Problem" describe the computational problems treated in the course; do not misunderstand them as exercises.


Recommended Book Exercises

Here we list some particularly recommended exercises from the book, for those who want to practice a bit more on their own. You are also welcome to send questions about them.


Times for weekly exercise meetings: see Announcements section.


The course follows selected parts of the textbook
Jon Kleinberg, Eva Tardos: Algorithm Design. Pearson/Addison-Wesley 2006, ISBN 0-321-29535-8.

Brief Course Description

See also the syllabus in the Student Portal.

The course provides basic knowledge and methods for the design and analysis of fast and correct algorithms that solve new problems with the use of computers. The intuitive notion of time complexity is applied in a strict sense. After completion of this course, you should be able to:

This is not a course in programming! The main focus is on the analytical work that has to be done before writing any line of code. Accordingly, the implementation of algorithms is NOT practiced here.

Grades are based on the points in the written exam. Point limits for the grades 3, 4, 5 and G, VG will be announced there.

Course plan Chalmers
Course plan GU

About the Assignments

"Tell me and I forget. Show me and I remember. Let me do and I understand." (attributed to Confucius)

Computational problems in practice rarely occur in nice textbook form. We must be able to apply general algorithm design techniques to new problems, or at least adapt and adjust known algorithms to new variants of known problems. Therefore this course is problem-oriented and the exam will require problem solving, too.

Moreover, one cannot learn these skills just by listening, or by reading a lot of solutions written by others. (Compare to other skills: One cannot learn to play a musical instrument just be watching others playing. Of course, one has to practice!) It is important to invest own work and actively solve problems. The course offers possibilities for that, mainly by doing assignments.

While the assignments are voluntary, it is strongly recommended to work on them as much as you can. Then you will be in a much better position in the exam, but we also hope that you work on them because you find them interesting as such.

Written solutions to assignments:
Most importantly, train your ability to communicate solutions in written form. Even when you have solved an exercise and the solution seems clear to you, comprehensible writing remains a challenge. Moreover, in the exam you must do it - and you want the graders to understand your solutions. We advise you to submit written solutions to the assignments, as many as you can. The deadline is always Sunday 23:59. (Of course, you may submit earlier.) All assignments shall be done individually. Discussion is encouraged, but what you submit must be written in your own words and reflect your own understanding. Submission details: see below.

The level of assignments and exercies may be higher than the level of typical exam problems. This is quite intended, because during the course you have more time and leisure for practicing more challenging and fun problems, and after all, one learns for the profession, not only for the next exam.

Submission Details

We use the Fire submission system rather than the Assignments feature of Canvas.
Make sure that you use only the link to Fire provided here, not a link from an earlier year.

Fire submission system

First create an account in Fire. You do this only once. As all assignments are individual, you don't have to create a group in Fire.

To create an account: Go to the submission system. Bookmark the link (you will need it again), click on "Click here to register as a student" and fill in your email address (preferably your student address). You will get a mail with a web address. Click this address, it leads you to a page where you can fill in your data: name, personal number, and a password. Spell your name correctly as "Firstname Surname" (only the most commonly used first name is needed, with big initial letters) and write your personal number as yymmdd-xxxx with the dash, i.e., the minus sign. Log on using the account you have just created.

To submit a solution: Log on to Fire again. Upload the file(s) that make up your solution. Finally press the "submit" button. (This is easy to forget.) Fire will close exactly at the given deadlines, therefore, do not wait until the last minute.

Solutions should be submitted as PDF files, created with a word processor or latex or by scanning handwritten sheets - provided that they are readable. Your files must contain your name. Send a separate file for each problem.

From the grader you will receive a mail with comments. You can also download the comments from Fire.

Special remark: By default you may always get "fail"; this has only technical reasons (possibility to resubmit an improved solution) and does not mean anything. Only the comments are of interest.