This is an old revision of the document!
This is the course website for the Algorithms course 2ILC0.
9 Nov | First version of the 2016-2017 website online. |
---|
The efficiency of algorithms is of crucial importance in many applications. In the course Data Structures you have learned how to mathematically analyze efficiency, how to use design techniques like divide-and-conquer, and you have seen efficient algorithms and data structures for basic problems such as sorting and searching. In the course Algorithms we will take this one step further, by studying more advanced design techniques and algorithms, and by studying other aspects of efficiency. Many of the topics that are covered concern optimization problems, where one wants to find not just some solution to a problem but an optimal solution. The course consists of three parts.
Algorithmic techniques for optimization. In this part of the course we study three general techniques for solving optimization problems: backtracking, dynamic programming, and greedy algorithms. Backtracking can be applied to more or less all problems but it generally yields very slow algorithms, a greedy approach can be applied to few problems but it generally gives very fast algorithms, and dynamic programming lies in between.
Graph algorithms. The second part of the course deals with algorithms for optimization problems on graphs: computing shortest paths, computing maximum flows, and finding so-called matchings.
Selected topics. In the third part of the course we study the limitations of traditional algorithm design and analysis. We consider problems for which it seems impossible to design efficient algorithms and introduce the concept of NP-hardness (which formalizes this). We introduce linear programming, and see how optimization problems can be formulated as linear programs.
The course is based on the following book, which is the same book as used in the course Data Structures:
[CLRS] T. H. Cormen, C. E. Leiserson, R. L. Rivest and C. Stein: Introduction to Algorithms (3rd edition), MIT Press, 2009, ISBN 0-262-53305-07.
In order to take this course, you must have completed and passed Data Structures (2IL50 or 2IL05). Thus, you should know the following:
The weekly schedule for this course is:
During the lectures hours, the basic theory will be taught and plenary feedback on the homework exercises may be given.
The tutorial hours are used either for working on and asking questions about the homework assignments, for discussion of the solutions to the homework exercises, and for individual feedback. Tutorial groups will be made during the first week of classes.
The assignment of groups to rooms is as follows:
The final grade will be based on two components: homework exercises and an exam.
There are six sets of homework exercises. The deadlines for these homework sets can be found in the schedule. For each set you can get up to 10 points. Your final score for the homework assignment is calculated as follows:
In other words, the grade for the set on NP-completeness always counts, but the worst-scoring grade for the remaining 5 sets does not count.
On the exam you can score up to 10 points.
The final grade is determined as follows:
Homework exercises must be done individually, that is, you must write the solution by yourself. Handwritten solutions and solutions made in pairs will not be graded and automatically get a score of 0 (zero) points. Do not search the internet for solutions. Solutions copied from the internet, or from other students, automatically get 0 points; copying is considered fraud, and students who copy may be reported to the exam committee.
You are advised to prepare the solutions using LaTeX: this usually gives much nicer results than Word, especially for mathematical formulas. Some information about LaTeX can be found on the course website of Data Structures. For describing algorithms you can use the package algo, algorithm2e, or clrscode3e (other packages exist as well). For drawing figures, you can use Ipe or yEd Graph Editor, for example.
In the tutorials you can ask for help on the homeworks. You can even show your solutions (including typeset solutions that you are planning to hand in), and ask for feedback e.g. about the level of detail of your solution, or about whether the general idea of your solution is correct.
Please note the schedule below is tentative and may be adapted during the course.
Date | From | thru | Location | Event | Topic and material | Homework |
---|---|---|---|---|---|---|
Wed 11-11 | 13:45 | 15:30 | IPO 0.98 | lecture 1A backtracking | handout, slides pdf slides pptx | Homework 1 pdf zip The zip file with the LaTeX source also includes a file with the LaTeX source of the pseudocode in the handout. |
Wed 11-11 | 15:45 | 17:30 | MATRIX 1.44, MATRIX 1.60 AUD 1 | no tutorial | ||
Fri 13-11 | 08:45 | 10:30 | MATRIX 1.44, MATRIX 1.46, FLUX 1.09 | tutorial 1A | First half of homework 1 along with all the exercises in the handout | |
Fri 13-11 | 10:45 | 12:30 | AUD 2 | lecture 1B greedy algorithms | slides pdf slides pptx CLRS Sections 16.1-16.3.The chapter refers several times to dynamic programming (Chapter 15), which we will discuss later. Upon first reading, you may skip the parts referring to dynamic programming. | |
Wed 18-11 | 13:45 | 15:30 | IPO 0.98 | no lecture | ||
Wed 18-11 | 15:45 | 17:30 | MATRIX 1.44, MATRIX 1.60 AUD 1 | tutorial 1B | Second half of homework 1, and the practice exercises for lecture 2A | |
Fri 20-11 | 08:45 | 10:30 | MATRIX 1.44, MATRIX 1.46, FLUX 1.09 | no tutorial | ||
Fri 20-11 | 10:45 | 12:30 | AUD 2 | lecture 2A dynamic programming I | slides pdf slides pptx CLRS Sections 15.1-15.2 | |
Sun 22-11 | 23:59 | By email | Deadline homework set 1 | |||
Wed 25-11 | 13:45 | 15:30 | IPO 0.98 | lecture 2B dynamic programming II | slides pdf slides pptx CLRS Sections 15.3-15.5 | Homework 2 pdf zip |
Wed 25-11 | 15:45 | 17:30 | MATRIX 1.44, MATRIX 1.60 AUD 1 | tutorial 2A | First half of homework 2, together with the practice exercises on dynamic programming | |
Fri 27-11 | 08:45 | 10:30 | MATRIX 1.44, MATRIX 1.46, FLUX 1.09 | tutorial 2B | Second half of homework 2, together with the practice exercises on dynamic programming | |
Fri 27-11 | 10:45 | 12:30 | AUD 2 | lecture 3A single-source shortest paths | slides pdf slides pptx CLRS Chapter 24 (except Section 24.4) | |
Sun 29-11 | 23:59 | By email | Deadline homework set 2 | |||
Wed 2-12 | 13:45 | 15:30 | IPO 0.98 | lecture 3B all-pairs shortest paths | slides pdf slides pptx CLRS Chapter 25 (except Section 25.2) | Homework 3 pdf zip |
Wed 2-12 | 15:45 | 17:30 | MATRIX 1.44, MATRIX 1.60 AUD 1 | tutorial 3A | First half of homework 3, together with the practice exercises on shortest paths | |
Fri 4-12 | 08:45 | 10:30 | MATRIX 1.44, MATRIX 1.46, FLUX 1.09 | tutorial 3B | Second half of homework 3, together with the updated practice exercises on shortest paths | |
Fri 4-12 | 10:45 | 12:30 | AUD 2 | lecture 4A maximum flow | slides pdf slides pptx CLRS Chapter 26 until (and excluding) “Analysis of Ford-Fulkerson” | |
Sun 6-12 | 23:59 | By email | Deadline homework set 3 | |||
Wed 9-12 | 13:45 | 15:30 | IPO 0.98 | lecture 4B applications of max flow | slides pdf slides pptx CLRS Sections 26.2 and 26.3 | Homework 4 pdf zip |
Wed 9-12 | 15:45 | 17:30 | MATRIX 1.44, MATRIX 1.60 AUD 1 | tutorial 4A | First half of homework 4 | |
Fri 11-12 | 08:45 | 10:30 | MATRIX 1.44, MATRIX 1.46, FLUX 1.09 | tutorial 4B | Second half of homework 4 | |
Fri 11-12 | 10:45 | 12:30 | AUD 2 | lecture 5A linear programming | slides pdf slides pptx CLRS Sections 29.1 and 29.2 | |
Sun 13-12 | 23:59 | By email | Deadline homework set 4 | |||
Wed 16-12 | 13:45 | 15:30 | IPO 0.98 | surprise lecture by Bas den Heijer @ ORTEC: Engineering Highway Hierarchies | slides pptx (highway hierarchies are not part of the exam material) | Homework 5 pdf zip |
Wed 16-12 | 15:45 | 17:30 | MATRIX 1.44, MATRIX 1.60 AUD 1 | tutorial 5A | First half of homework 5 | |
Fri 18-12 | 08:45 | 10:30 | MATRIX 1.44, MATRIX 1.46, FLUX 1.09 | review tutorial | Second half of homework 5 | |
Fri 18-12 | 10:45 | 12:30 | AUD 2 | overview lecture | ||
Sun 3-1-2016 | 23:59 | By email | Deadline homework set 5 | |||
Wed 6-1 | 13:45 | 15:30 | HELIX 1 | lecture 6A NP-completeness | slides pdf slides pptx CLRS Sections 34.1—34.4 | Homework 6 pdf zip |
Wed 6-1 | 15:45 | 17:30 | MATRIX 1.44, MATRIX 1.60 AUD 1 | no tutorial | ||
Fri 8-1 | 08:45 | 10:30 | MATRIX 1.44, MATRIX 1.46, FLUX 1.09 | tutorial 6A | First half of homework 6 | |
Fri 8-1 | 10:45 | 12:30 | IPO 0.98 | lecture 6B NP-completeness | slides pdf slides pptx CLRS Sections 34.1—34.4 | |
Wed 13-1 | 13:45 | 15:30 | IPO 0.98 | what is expected on the exam | slides pdf slides pptx | |
Wed 13-1 | 15:45 | 17:30 | MATRIX 1.44, MATRIX 1.60 AUD 1 | tutorial 6B | Second half of homework 6 | |
Fri 15-1 | 08:45 | 10:30 | MATRIX 1.44, MATRIX 1.46, FLUX 1.09 | exam practice tutorial | ||
Fri 15-1 | 10:45 | 12:30 | AUD 2 | programming contest puzzles & answering your questions about the exam material | puzzles slides pdf puzzles slides pptx follow-up courses slides pdf follow-up courses slides pptx | |
Sun 17-1 | 23:59 | By email | Deadline homework set 6 | |||