Instituto Superior Técnico

LEEC · Instituto Superior Técnico

Algorithms and Data Structures

AEDCourse Page
  • 6 ECTS
  • 1st Semester
  • Exam: Not specified
Overall
5
0
4
2
3
1
2
0
1
0
3.7
★★★★★★
3 ratings
Workload
Very light
0
Light
0
Moderate
0
Heavy
1
Very heavy
2
Very heavy3 ratings

Feedback

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

4 months ago

As aulas teóricas são importantes, muito importante preparar os laboratórios, pois abordam temas que saem no projeto e no exame.

2024/2025
★★★★★
Workload:Heavy

9 months ago

you will have to spend more time watching youtube about the subject than going to classes

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

2023/2024
★★★★★
Workload:Very heavy

9 months ago

About the course

Objectives

Upon completion of the course, students should be able to: 1. develop and implement A&DS and analyse them regarding correctness; 2. understand basic concepts in complexity theory; 3. analyse how efficient A&DS are based on different measures on efficiency, such as time and memory complexity; 4. write programs that use A&DS with help of good programming principles such as the specification of APIs and the use of tests that utilise A&DS 5. solve problems through the use of DS such as linear lists, stacks, queues, hash tables, binary trees, heaps, binary search trees, and graphs, and write programs for the solutions; 6. solve problems by using algorithm design methods such as greedy algorithms, decomposition, dynamic programming, backtracking, and write programs for the solutions; 7. given a specific problem, either design the appropriate DS or create and algorithm that solves the problem or identify the problem as one that cannot be solved efficiently.

Syllabus

1. Basic analysis Introduction to Complexity; Asymptotic analysis of complexity; Standard notations. The Master theorem; The most common complexity classes; Empirical estimate of complexity; Complexity in time and memory; The use of recursion to analyse algorithms. Best, average and worst-case complexity. 2. Basic DS: lists, stacks, queues, hash tables, heaps, trees, graphs. 3. Strategies for algorithms and data abstraction. Brute-force algorithms; Greedy algorithms; Decomposition algorithms; Backtracking; Heuristics 4. Basic algorithms Simple numerical algorithms; Sequencial and binary search; Quadratic sorting (selection insertion, bubble); Sorting in O(N log N) (Quicksort, Heapsort, Mergesort); Hash tables; Binary search trees; Representations of graphs (adjacency lists and matrices); DFS, BFS, and PFS; Shortest path algorithms (Dijkstra and Floyd); Minimum spanning trees (Prim and Kruskal)

Prerequisites

Students must have passed the introdutory level Programming course

Cross Competence Component

The soft skills component is relevant in this course. It is mostly related to the laboratory work and the development of the project throughout the semester. In the laboratory students will work in groups and develop interpersonal relationships, required to achieve a common goal. During project development, time management and creativity will also be essential, as will the ability to write a concise but clear report on the work conducted and a thourough evaluation of its capabilities.Ethics is also an important part of the project development as students must learn how to openly cooperate while following strict rules that require the work presented to be entirely done by them or if parts are used, they must be properly attributed.

Laboratorial Component

Groups of two students will undertake a series of 6 laboratory assignments and will develop a project throughout the semester.

Programming And Computing Component

This curricular unit is essentially a unit in the area of computation and programming. As such all aspects of the unit are directly related to computational reasoning and all aspects of the course, including the evaluation, both the exam as well as the laboratory assignments and project, have components from abstraction, automation, decomposition, debugging, generalization and algorithmic reasoning. Therefore all 6 ECTS in this curricular unit fall in the area of computing. This curricular unit indeed provides 6 additional ECTS in the area of Computing and Programming.

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

Pre-enrolment advice

With the curricular change that took place in 2021/22, passing the Programming course is no longer required for students to enrol in Algorithms and Data Structures. Performance over the last five academic years has not been good for these students. A lack of minimum programming skills is a significant obstacle to success in AED. Those who think that having been exposed to the material of the Programming course is enough are deceiving themselves. If they did not pass, it is because it was not enough for that course. What is not enough for Programming will very hardly be enough for Algorithms and Data Structures.

Students who did not pass Programming are advised to think very carefully about whether they should enrol in AED. Taking on AED is not exclusively a personal matter, since students will have to form groups to attend the laboratories and to carry out the project.

In the first year of the curricular reform, which adopted 7-week teaching periods, a record number of laboratory groups were broken up right after the first two weeks of classes, because one of the students realised that they were not in a position to contribute positively to the group's work. This behaviour has repeated itself every year since. Given that the teaching period was only seven weeks long, this kind of event was excessively disruptive for the students who were left alone and for the teaching staff, who already have a lot to deal with and do not need to spend seven weeks in a transitional state, trying to find alternatives for the students left on their own. A summary of the last three academic years is presented below.

  • In the 2023/24 academic year, 38 students who had not passed Programming enrolled in AED. 9 completed all the assessment, and 4 of them passed. The remaining 29 did not take one or either of the two minimum-grade components (project and written exam). In addition, compared with the others, the average grade was more than 4.0 points lower in the laboratory, more than 5.0 points lower in the project (for the 16 students who did it) and more than 4.0 points lower in the first exam (for the 13 students who took it).
  • In 2024/25, 52 students enrolled in AED without having previously passed Programming. Of these 52, 5 did not do the laboratory and those who did scored just over 4 points below the average of the others. 24 did not submit a project and those who did had an average grade more than 3.5 points below the others. 15 did not take any exam and those who took one or two achieved an average more than 2.5 points lower than the average of the others. The 28 students who took both mandatory components (project and exam) ended up with a final grade more than 3 points lower on average than the others. Only 14 passed, which corresponds to about 27% of those 52. The pass rate among enrolled students for the others was above 65%.
  • In 2025/26, 82 students enrolled in AED without having previously passed Programming. Two of them cancelled their enrolment right after classes started. The remaining 80, a record of almost 25% of all students enrolled that year, had the following outcomes: 76 did the laboratory with an overall average of 10.03 points, lower than the others by 3.56 points; 49 did the project with an overall average of 7.77 points, lower than the others by 4.53 points; 49 took at least one of the exams with an average of 5.77 points, lower than the others by 3.01 points; 42 had both an exam grade and a project grade with an average of 7.80 points, lower than the others by 3.42 points; 19 (23.75% of the 80 enrolled and 45.24% of the 42 assessed) passed with an average of 12.00 points, 0.81 points below the other students who passed; The pass rate of the other students, those who had not failed Programming, was 61.85% of those enrolled and 75.12% of those assessed.

The figures presented here should not be seen as a challenge or provocation. They are a clear sign of the effective waste of time, to the detriment of themselves and their colleagues, negatively affecting performance in other courses, that students who did not pass Programming will incur if they insist on keeping their enrolment in this course. We therefore appeal to the good sense of everyone when deciding on enrolment in this course and on the choice of partners when forming work groups.

**
**

Assessment rules for the regular period

Assessment is carried out through a practical component and a theoretical component.

The theoretical component is determined by an exam, with a minimum grade of 7.00 points, and a weight of 45% of the final grade.

The practical component consists of Laboratory and Project, with a weight of 55% of the final grade.

Of the 7 laboratory sessions, 5 will be assessed. The first session, in week #01, will present the working environment and will be expository in nature, and the seventh session, in week #15, will be an open laboratory to support completion of the project submission process.

Given its weight in the final grade, the laboratory has no minimum grade.

The minimum grade for the Project is 7.00 points.

The assessment of the submitted Project implementations includes automated tests and an individual practical test. The grade of this practical test (from 0 to

  1. defines the multiplicative factor applied to the best score obtained by the implementation in the automated tests.

After the individual practical test, an oral examination of the whole group may be required. The purpose of these oral examinations is to assess the degree of participation of the two group members or to determine the authorship legitimacy of the submitted implementations.

Letting P be the project grade and L the laboratory grade, the grade of the practical component is obtained through the following expression: 0.1L+0.45P.

Also regarding the AED project, each enrolled group will be assigned a lecturer who will act as Project Manager (PM). The meetings of each group with its PM are subject to assessment and contribute to the final Project grade. The Project statement specifies the rules for working with the PM and also defines the weight that the assessment carried out by the PM will have in the final Project grade.

There are two exam dates: the regular date and the resit date.

Any student who takes both exams will keep the better of the two grades, regardless of the date on which it was obtained. The final grade obtained from the contribution of the two components (adding 0.45E to the practical component) must be greater than or equal to 9.50 points to pass the course.

Reuse of past work:

  • Laboratories completed in the past are valid this year with the grade they received, regardless of the date on which they were completed;
  • Students who completed the project in their last enrolment and obtained a passing project grade (>= 9.50) are exempt from doing the project.
  • Students with a passing grade (>= 9.50) in the theoretical component in their last enrolment are exempt from the theoretical assessment.
  • Any student may attempt to improve one of the components from which they are exempt. In the specific case of improving only the laboratory grade, the old grade is lost at the moment the student chooses to improve it.

**
**

Assessment rules for the special period

Any student who becomes eligible to enrol in the special period exam must meet the same requirements set out above for the regular period. If they do not have a minimum project grade, they must submit a project implementation on a topic defined by the teaching team, which may be different from the topic used in the regular period. In this case, the project implementation is done individually. If they do not have a minimum exam grade, they must take a written exam on a date set by the school's competent bodies. If they do not have a laboratory grade, they lose 10% of the maximum grade attainable in the special period exam.

The final grade is obtained by the same formula described above for the regular period and the resulting grade must also be greater than or equal to 9.50 points to pass.
**
**Assessment rules for working students

They follow the same format as the assessment rules for the special period.

**
**

On academic honesty

For each assessment, only the material explicitly indicated by the person responsible for the course may be used and consulted. Everything else is not permitted.

Fraud:

  1. Copying, sharing or unauthorised use of information, in whole or in part, in any assessed work is considered fraud, regardless of the nature of the assessment.
  2. Any fraud, or attempted fraud, detected during an assessment or proven by later evidence, leads to the annulment of the assessments of everyone involved.
  3. Detected cases of fraud will be reported by the person responsible for the course to the Pedagogical Council, with notification to the Course Coordination.

More information can be found in the Academic Honesty Code tab on this page.

Automatically translated from Portuguese

Has the assessment changed, or is something missing?

Bibliography

Bibliografia Principal

  • Algorithms in C, Parts 1-5 (Bundle): Fundamentals, Data Structures, Sorting, Searching, and Graph Algorithms": Robert Sedgewick 2001 Addison-Wesley Professional

Bibliografia Secundária

  • The C Programming Language-the ANSI edition: Brian W. Kernighan, Dennis M. Ritchie 1988 Prentice-Hall
    • Linguagem C: Luis Damas 1999 FCA
    • Introduction to Algoritms: Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest 1999 MIT Press
    • Introduction to Algoritms: Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest 1999 MIT Press

Missing a book or some materials?