Hoppa till huvudinnehållet
Till KTH:s startsida Till KTH:s startsida

ID1019 Programming II 7,5 hp

Course memo Spring 2022-60617

Version 1 – 10/19/2021, 12:22:53 PM

Course offering

TCOMK (Start date 18/01/2022, English)

Language Of Instruction

English

Offered By

EECS/Computer Science

Course memo Spring 2022

Course presentation

In this course you will learn two very important programming paradigmns: functional programming and concurrent programming. There will be quite alot of programming during the course so be prepared to spend time infront of the computer.

You will create the image to the left by tracing some milljon light rays as they bounce around in a room. Sounds complicated but using some vector arithmetic it's easier than one might think.

Headings denoted with an asterisk ( * ) is retrieved from the course syllabus version Spring 2022

Content and learning outcomes

Course contents

The course goes through partly the programming techniques that are used in functional programming languages, partly how programmes can be divided into several executing threads and how these can be coordinated. Examples of programming techniques are recursive definitions, non-updateable data structures, functions of higher order and so called “closures”. Coordination of multiple threads is shown, partly through modification of common data structures, partly through message passing between processes.

The course will use a programming language as the main language but also show similarities and differences with other functional languages.

Intended learning outcomes

After passing the course, students should be able to:

  • use recursion, pattern matching and non-modifiable data structures upon implementation in a functional programming language.

For higher grades, the student should also be able to

  • use functions as first order objects and work with the functions of higher order
  • explain the basics of functional programming, its structure and operational semantics
  • evaluate functions with regard to time complexity
  • use message based multi-threaded programming. 

Learning activities

The course will this year consist of a set of pre-recorded lectures. During the scheduled lectures we will take qustions, give aditional explanation and discuss alternative solutions. 

We will also have scheduled sessions where teaching assistants will help you with the programming tasks that you will have during the course.

Preparations before course start

Equipment

You will need a computer where you can install some programming environment. You can survive using the computers available at the school but everything is simpler if you have your own computer.

Software

We will use the programming language Elixir in the course. You will find everything you need at the home page of the language:

By intslling Elixir you will be able to compile and run elixir programs.  You will also need a text editor and you can choose one that you're familiar with from previous courses. Make sure that the editor can format elixir code in a way that makes int easier to program.

Examination and completion

Grading scale

A, B, C, D, E, FX, F

Examination

  • INL1 - Hand in assignment, 7.5 credits, Grading scale: A, B, C, D, E, FX, F

Based on recommendation from KTH’s coordinator for disabilities, the examiner will decide how to adapt an examination for students with documented disability.

The examiner may apply another examination format when re-examining individual students.

The section below is not retrieved from the course syllabus:

Hand in exercises ( INL1 )

For grade E you should solve a number programming tasks, assess other students solutions. The solutions can be presented both as program code, shorter reports and oral presentations. The tasks will be about the basics of functional prgramming.

For higer grades there will be four additional programing task that should be solved and presented. These task will be related to: sematics, higher order functions, efficiency and processes.

Ethical approach

  • 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.

Further information

No information inserted

Round Facts

Start date

18 Jan 2022

Course offering

  • TCOMK Spring 2022-60617

Language Of Instruction

English

Offered By

EECS/Computer Science

Contacts

Course Coordinator

Teachers

Examiner