Official course description, subject to change:

Basic info last published 15/03-24
Course info
Language:
English
ECTS points:
7.5
Course code:
KSAPALG1KU
Participants max:
35
Offered to guest students:
yes
Offered to exchange students:
yes
Offered as a single subject:
yes
Price for EU/EEA citizens (Single Subject):
10625 DKK
Programme
Level:
MSc. Master
Programme:
MSc in Software Design
Staff
Course manager
Associate Professor
Teacher
Associate Professor
Course semester
Semester
Efterår 2024
Start
26 August 2024
End
24 January 2025
Exam
Abstract
In this course, you will learn how to implement some widely-used algorithms as fast and scalable programs on modern hardware, and how to evaluate your implementation using appropriate test cases and performance experiments.
Description

This course introduces the students to some classical examples of widely used algorithms and uses these to show how to implement an algorithm in a correct and scalable way in the context of a particular application. 
The focus of the course is the implementation, its correctness, the experimental analysis, and the connection to the performance models. 

Examples of well understood computational tasks that can be considered in depth are: 

  • shortest path for cars on road networks 
  • sorting: why different variants of quicksort differ in performance, how to sort strings
  • cache oblivious search trees as file system or database index 
  • matrix multiplication
  • matrix vector multiplication 
  • locality sensitive hashing 
  • k-means clustering 
  • minimum spanning tree 
  • edit distance 
  • approximate neighborhood 
  • distinct elements
  • job scheduling

The course introduces the different algorithmic tasks, the algorithms, the testing methodology and the performance models.  The exercises focus on implementation, testing and interpretation of the measurements

Formal prerequisites

Before the course, the student should be able to:

  • Perform basic analysis of algorithm correctness and complexity, using invariants and big-Oh notation.
  • Use basic algorithms and data structures when programming (e.g., lists, queues, stacks, search trees, hashing, sorting algorithms, and basic graph algorithms).
This can be achieved, for example, by taking the course "Algorithms and Data Structures" (ADS).
Intended learning outcomes

After the course, the student should be able to:

  • implement a (randomized, parallel) algorithm from a given high-level description (such as pseudo-code). In particular, this includes judging which data structures, libraries, frameworks, programming languages, and hardware platforms are appropriate for the computational task, and using them effectively in the implementation.
  • experimentally evaluate the correctness of an implementation by creating and using adequate test cases.
  • design, perform, and run a performance and scalability experiment. In particular, this includes creating and using adequate families of synthesized or real-world test cases, measuring the computational resource requirements of a particular implementation, and judging if the experimental results conform to a theoretical performance model.
Ordinary exam
Exam type:
D: Submission of written work with following oral, External (7-point scale)
Exam variation:
D2M: Submission for groups or individual with following oral exam supplemented by the submission.