Faculdade de Ciências e Tecnologia da Universidade NOVA de Lisboa

MEI · Faculdade de Ciências e Tecnologia da Universidade NOVA de Lisboa

Algorithms and Distributed Systems

ASDCourse Page
  • 6 ECTS
  • 2nd Semester
  • 1st Semester
  • Exam: Optional
Overall
5
2
4
0
3
0
2
0
1
0
5.0
★★★★★
2 ratings
Workload
Very light
0
Light
0
Moderate
0
Heavy
1
Very heavy
1
Heavy2 ratings

Feedback

2025/2026
★★★★★
Workload:Very heavy

4 months ago

Esta cadeira não é fácil.

Começo por dizer isso, mas acrescento logo a seguir que foi uma das minhas favoritas.

O Professor é extremamente simpático, faz aulas mega interessantes e torna um bicho de 7 cabeças numa coisa mais engraçada (mas continua a ter 7 cabeças).

Há 4 trabalhos de casa que se fazem mais ou menos rápido para entregar numa folha A4, são coisas pequenas de escrever pseudocódigo. Para além disso há 2 projetos que ocupam o semestre inteiro e são projetos bastante perto de projetos de investigação onde têm de, para além de implementar e desenvolver uma solução, escrever um relatório no estilo de um paper.

A matéria é muito interessante para quem é da área e aprende-se imenso, diria que é das cadeiras onde mais aprendi, mas é super pesada.

PowerPoints e todos os materiais muito acima da média em termos de qualidade e às vezes até com alguns memes para aliviar a dor na alma.

Não subestimem esta cadeira, muito menos os projetos que não são nada simples e rápidos de fazer, mas garanto-vos que vão aprender bastante. Já os testes, diria que são normais e o regente gosta de dizer "ter noção que não sei também é inteligência" e por isso perguntas que deixem em branco têm 10% da cotação ao invés de 0.

2024/2025
★★★★★
Workload:Heavy

4 months ago

Professor João Leitão incrível! Projeto não é óbvio, mas é divertido e dá que pensar...

Primeira vez na faculdade que temos que avaliar riscos e ter em conta cenários reais :)

About the course

Objectives

The course unit (UC) aims to consolidate and develop knowledge in the area of Distributed Systems, for the understanding and construction of complex distributed and decentralised systems. It seeks a good command of the fundamental problems and ideas underlying the design of current, commonly used systems, and of the techniques that are likely to be important for the systems to be developed in the future.

The UC has a strong algorithmic component, but it is also accompanied by programming projects that put into practice the fundamental concepts taught in it, allowing students to become aware of some subtleties related to the implementation of the algorithms learned in the UC.

Knowledge:

• Basic concepts for the analysis and synthesis of distributed algorithms.

• Fundamental abstractions for building distributed systems and their algorithmic realisation.

• Techniques to improve the reliability and scalability of distributed systems.

Skills:

• Construction of distributed algorithms and their application in the development of distributed systems.

• Analysis of distributed algorithms.

• Programming of distributed systems.

Contents

1. Distributed Computing Models:

1.1. Modelling of processes, failures, cryptographic primitives.

1.2. Timing models: Synchronous, Asynchronous and Eventual Synchrony.

1.3. Communication Primitives: (best-effort, exactly once, broadcast).

2. Peer-to-peer (P2P) Systems:

2.1. Unstructured overlay networks.

2.2. Epidemic protocols.

2.3. Structured overlay networks.

2.4. Consistent hashing and application-level routing.

2.5. Case Studies.

3. Agreement:

3.1. Consensus in synchronous systems.

3.2. Consensus in asynchronous systems & FLP.

3.3. Paxos and some variants.

4. Replication and Fault Tolerance:

4.1. Specification of replicated systems.

4.2. Active replication and passive replication.

4.3. Strong consistency: State machine replication.

4.4. Weak consistency: CAP theorem, eventual consistency, causal consistency.

4.5. Case Studies.

5. Distributed Transactions:

5.1. Two-phase commit.

5.2. Three-phase commit.

Automatically translated from Portuguese

Something missing or out of date?

Assessment

2 midterm tests (or allternatively an exame that replaces the tests): 55%

- each midterm has the same weight for this component.

- midterms will be made in person if conditions allow for it.

- if midtems can be in person, each student can take up to two A4 pages, manuscripted with whatever information they want. These are delivered at the end of the midterm and must be identified with name and number.

project (in two phases, and conducted in groups of 3 students): 35%

- first phase has a weight of 40% in this component, and the second phase a weight of 60%.

Individual homeworks (provided in lectures, and delivered before the start of the following lecture): 10%

- each homework has the same weight for this component.

Components resuts are rounded up to the 2 decimal place, and final grade rounded up to units.

The course has mandatory frequency. To get approval at frequency the student must have a final grade >= 8.5 at the project.

Tools based on generative AI can only be used for acelerating the writting of small pieced of repetitive code and not to build the main logic of projects. Violations of the rule will yield a zero in the practical component.

Has the assessment changed, or is something missing?

Bibliography

Main course reading:

• N. Lynch. Distributed Algorithms Morgan Kauffman, 1996.

• C. Cachin, R. Guerraoui, L. Rodrigues "Introduction to Reliable and Secure Distributed Programming", 2nd ed, Springer, 2011.

• Selected research papers.

Complementary reading:

• H. Attiya and J. Welch. Distributed Computing: Fundamentals, Simulations, and Advanced Topics (2nd Ed.), Wiley 2004.

• S. Mullender (editor) Distributed Systems, Second Edition, ACM Press, Addison-­Wesley, MA, 1994.

• A.S. Tanenbaum and M. van Steen. Distributed Systems. Principles and Paradigms. (2nd Ed.) Prentice Hall, 2007.

• Rodrigo Rodrigues, Peter Druschel. Peer-­to-­Peer Systems. Communications of the ACM. Vol. 53 N10, pp 72-­82.

Missing a book or some materials?