Instituto Superior Técnico

MECD · Instituto Superior Técnico

Advanced Algorithms

AAvaCourse Page
  • 6 ECTS
  • P3
  • Exam: Mandatory
Overall
5
2
4
1
3
2
2
0
1
1
3.5
★★★★★★
6 ratings
Workload
Very light
0
Light
3
Moderate
2
Heavy
0
Very heavy
0
Light5 ratings

Feedback

2025/2026
★★★★★
Workload:Moderate

3 months ago

Prof. Luís Russo fraco a dar as aulas teóricas e explicar os conteúdos, e não existem slides das aulas mas sim um conglomerado de slides de outras universidades que ele entrega. Cadeira pouco organizada. Apesar disso, o prof está sempre disponível para ajudar e esclarecer dúvidas.

Avaliação por 3 projetos (4 valores cada), exame opcional se se passar logo pelos projetos mas fica-se com nota máxima de 12. Exame um pouco difícil se não se for tão da área, deve-se estudar pelos exames anteriores com alguma antecedência.

★★★★★
Workload:Light

4 months ago

Projects are easy, and you can pass the course without exams. But for full marks you will need to do the exams.
You get taught some algorithms in the theoretical classes and the teacher will tell you which ones you will need for each project, and some tricks to have an easier time.
There are slides but you can do just fine with information from the internet.

★★★★★
Workload:Light

5 months ago

A parte pratica sao 3 mini projetos mega faceis e ate giros. É so implementar um algoritmo e esta feito, e a avaliacao foi feita pelo mookshack.

A parte teorica era bastante parecida aos exames anteriores, por isso para quem estudar é facil ter uma boa nota.

Achei mega interessante

O professor é super tranquilo

★★★★★
Workload:Moderate

7 months ago

Theoretical Classes → Professor Luis Russo is very chill and clearly enjoys teaching the class. No issues with asking "stupid" questions. However, there are no dedicated lecture slides — he uses random slides from a myriad of other universities. There is a lot of jumping around: from the slides to his tablet, from the tablet to the book, then to the board, then back to another slide from somewhere else. It's hard to follow at times. To make it worse, sometimes he got confused with the theory himself. I would say basic prior knowledge of data structures is needed, nothing else. I would also have liked more examples/exercises on each topic.

Lab Classes → Used either for the project or to practice theoretical exercises — the class's choice.

Project (divided into 3 separate, smaller projects) → All stages are made available before the classes even start, if I recall correctly. It accounts for 12 points of the overall class grade, with each stage worth 4 points. You can submit your solutions during the normal period (each at a different time during the quarter) or later during the recovery period, in which you can also improve solutions already submitted during the normal period. There is no report, and the smaller projects are the same regardless of when they are delivered (normal or recovery period).

Mooshak is used to run your implementation, run tests on it, and calculate your project grade, which you get instantly after submitting. You can also make as many submissions as you want for the same implementation. The professor also helps whenever you're stuck and not getting past a certain number of Mooshak points (whenever some tests fail) — he's great when it comes to that.

NOTE: The last stage/smaller project - suffix trees - is definitely the most time consuming.

Exam → Not mandatory. Accounts for 8 points of the overall grade.

The only thing really missing from this class are dedicated slides. I wouldn't change anything else. Pretty cool professor, if you ask me.

2024/2025
★★★★★
Workload:Light

last year

For those who enjoy algorithms, graphs, combinatorics, and string problems, this is probably one of the best courses in MEIC.

I got the impression that the course content varies quite a bit depending on the professor. In 2023/2024, it was taught by Professor Luís Russo, and the topics covered included amortized analysis, heaps, minimum spanning trees, string matching, and Yao’s min-max principle.

There’s another review from 2021 about a different version of the course also taught by Luís Russo, but it no longer seems to reflect the current state of the course. This year there were no weekly assignments, and the professor seemed very comfortable with the structure he had in place.

There were three projects (on heaps, minimum spanning trees, and suffix trees). The first two were very easy. Suffix trees were a nightmare, but the professor provided a lot of support during lectures and office hours. He also released all three project statements in the first week.

Professor Luís Russo’s theoretical classes really paid off. The only weak point of the course is the lack of a clear logical progression in the topics: one week you’re talking about minimum spanning trees, and the next about string matching. The only unifying theme is that the professor always applies amortized analysis to every data structure he presents.

The exam didn’t have a minimum grade requirement and counted for 40% of the final grade.

The reviews below this point may be outdated. Course content, teaching methods, and requirements may have changed since then.

2020/2021Pre-MEPP
★★★★★

5 years ago

In this semester, the course was taught by Professor Luís Russo. The evaluation consisted of weekly assessments throughout the semester.

Classes felt improvised, as the professor seemed to be figuring things out as he went. The only study materials available were the notes he took on his tablet during class, which were very confusing. He shared some past exams, but the questions in there were very different from the ones we had in our assessments.

Weekly Assessments & Evaluation

The weekly assessments started to be 20 minutes and then increased to 40 minutes as the professor experimented with formats. He started by mentioning the topics that would be covered in advance, but this stopped midway through the semester, leaving students unsure of what to study. This uncertainty made me feel extremely anxious during the semester.

During class, before the assessments, the professor would solve similar exercises, but those exercises were often much smaller and simpler than the ones in the assessment. Additionally, in the assessment itself we would often need to create the entire data structure from scratch before we could even start solving the actual problem. Because of this, I never finished a single assessment, and I believe the same happened to many other students. We had 12 assessments in total, with the two lowest grades dropped.

Course Content & Clarity

A large portion of the early semester focused solely on string algorithms, leaving much of the syllabus untouched. After several student complaints, we finally started studying some probabilistic algorithms. During theoretical lectures, these algorithms were very hard to follow, but when we attended office hours, the professor could explain the concepts very clearly.

Project

The two projects involved implementing one or two advanced algorithms. However, those algorithms were very advanced (eheh), thus we had very few resources to learn from. One of which was the recommended book, which was interesting to read, but not fun at all to interpret.

We were only given six test cases, three of which were duplicates. We also requested for more test cases, but the professor didn't give us any.

The evaluation criteria was also too strict: The professor required us to tell the number of comparisons our implementation did, and that number had to match the number of comparisons in the professor's solution. This meant that even correct implementations could fail if they didn't exactly match the professor's approach. You would have to either guess how he did it or ask him directly. A small bug I had (a misplaced '+1' in the code) dropped my Mooshak score from 20/20 to 4/20.

The professor also didn't like having so many 20s, so he added extra grading criteria after all the projects were submitted: He asked us to write comments in the code and to use a tool to analyze the algorithm's complexity.

Overall Experience

My experience in this course was pure mental torture, the course was not interesting at all, and the things we learned were all over the place. I feel that I didn't learn anything useful, and I'd rather have learned these topics on my own if I ever needed them.

Bottom line: if it’s given by Professor Luís Russo, it’s a trap.

About the course

Objectives

Data structures and algorithms are the basic building blocks of any computer system and they become even more relevant when such systems have to process huge volumes of data and/or have to meet real time processing requirements. The aim of this course is to provide advanced training in techniques for the development and implementation of efficient algorithms and applications, with particular focus on advanced data structures and algorithms for indexing, on randomization, sampling and approximation schemes, taking into account real time and/or large data processing requirements. This course will follow a problem based learning approach where techniques and methods will be intuitively and constructively explored, including relevant implementation techniques.

Syllabus

Design and analysis of advanced data structures such as B-trees, splay-trees and Cartesian trees. Priority queues based on Fibonacci, binomial, and relaxed heaps. Amortized analysis. Succinct/compact data structures. Algorithms and data structures for efficient string processing, such as suffix trees and arrays. Algorithms and data structures for efficient tree and graph processing. Combinatorial optimization. Probabilistic and game theory techniques applied to the analysis and design of algorithms and data structures. Approximation algorithms. Algorithms with random choices. Streaming and online algorithms. Algorithms and data structures for processing large volumes of data. Implementation techniques, practical usage, and experimental evaluation.

Prerequisites

Introduction to Algorithms and Data Structures, and Analysis and Synthesis of Algorithms, in LEIC curriculum, or similar courses. Familiarity with the C programming language.

Cross Competence Component

There is no explicit component of soft-skills within this course, but the practical work, to be done by groups of students, will promote transversal competences in Critical Thinking, Intra-personal Competences, and Inter- personal Competences.

Laboratorial Component

Application of the techniques discussed in theoretical classes, and studied after those, on problem solving, namely those proposed within the practical work, and on the implementation of algorithms and data structures inherent to obtained solutions.

Programming And Computing Component

This course is offered in a degree where the skills defined by the Computing and Programming Commission are already secured. This course contributes with practical implementation techniques of advanced data structures and algorithms.

Ethical Principles

All members of a group are responsible for the group's work. In any assessment, every student shall honestly disclose any help received and sources used. In an oral assessment, every student shall be able to present and answer questions about the entire assignment and solution.

Something missing or out of date?

Assessment

Exam and practical work. The exam contributes 40% to the final mark (FM). The practical component contributes 60% to the final mark (FM). FM = 0.4 * max(E1, E2) + 0.6 * P Approved if FM >= 9.5.

Has the assessment changed, or is something missing?

Bibliography

Main Bibliography

  • Genome-Scale Algorithm Design: Veli Mäkinen, Fabio Cunial, Djamal Belazzougui, and Alexandru I. Tomescu 2015 Cambridge University
    • Introduction to Algorithms: Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest and Clifford Stein 2009 MIT Press
    • Randomized Algorithms: Rajeev Motwani and Prabhakar Raghavan 2000 Cambridge University Press
    • Probability and Computing: Randomized Algorithms and Probabilistic Analysis: Michael Mitzenmacher and Eli Upfal 2005 Cambridge University Press
    • Combinatorial Optimization: Polyhedra and Efficiency: Alexander Schrijver 2004 Springer
    • Combinatorial Optimization: Theory and Algorithms: Bernhard Korte and Jens Vygen 2008 Springer
    • Mining of Massive Datasets: Jure Leskovec, Anand Rajaraman, and Jeff Ullman 2019 Cambridge University Press
    • Art of Computer Programming: Donald E. Knut 1998 Addison-Wesley

Missing a book or some materials?