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

ID1019 Programming II 7,5 hp

Course memo Spring 2021-60299

Version 2 – 01/18/2021, 8:39:20 AM

Course offering

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

Language Of Instruction

English

Offered By

EECS/Computer Science

Course memo Spring 2021

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 2021

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 thnis year consist of a set of pre-recorded lectures. During the scheduled lectures we will have a zoom meeting where questions related to the lecture can be asked.

We will also have a zoom meeting every week where you can get some help on the assignments that you are given throughout the corse. We will also have five seminar sessions, also over zoom, where we will discuss problems and solutions to larger assignments.

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.

Support for students with disabilities

Students at KTH with a permanent disability can get support during studies from Funka:

Funka - compensatory support for students with disabilities

Please inform the course coordinator if you need compensatory support during the course. Present a certificate from Funka.

Examination and completion

Grading scale

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

Examination

  • TEN2 - Examination, 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:

Examination ( TEN2 )

The exam will be in Canvas.

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 2021

Course offering

  • TCOMK Spring 2021-60299

Language Of Instruction

English

Offered By

EECS/Computer Science

Contacts

Course Coordinator

Teachers

Examiner