DD1321 Applied Programming and Computer Science 9.0 credits

Tillämpad programmering och datalogi

This is a course in applied programming and computer science.

Show course information based on the chosen semester and course offering:

Offering and execution

No offering selected

Select the semester and course offering above to get information from the correct course syllabus and course offering.

Course information

Content and learning outcomes

Course contents *

Python programming. Program quality. Testing and debugging. Exceptions. System calls. Library functions. Abstract datatypes, stack, queue, tree. Search, sort, recursion. Hash, binary search trees, tree traversals, deep/breadth-first algorithm. C-programming, type-directed programming, compiling, linking, building, make-files.

Intended learning outcomes *

During this course we will teach you to:

  • write structured programs either in Python or in C,
  • systematically debug programs,
  • write automated test programs,
  • use abstraction as a tool to simplify programming,
  • write prototypes using Python,
  • know about international programming standards,
  • component programming,
  • select an appropriate algorithm for certain problems,
  • compare algorithms considering memory use or complexity,
  • describe the qualities and characteristics of different algorithm such as seek and sort,
  • propose and implement recursive algorithm,
  • model real problems such as seek problems and implement algorithm for depth/width/best-first seek,
  • describe elementary compression algorithm,
  • implement and use stacks and queues,
  • implement and use binary trees of different kinds,
  • implement and use hash tables and hash functions
  • use priority queues,
  • identify problems where the above mentioned data structures are useable,

so that you will be able to:

  • feel confident to solve programming problems,
  • use computer science methods in real world projects,
  • test computer systems,
  • continue study more advanced courses in computer science (internationally or nationally).

Course Disposition

No information inserted

Literature and preparations

Specific prerequisites *

For single course students: completed upper secondary education including documented proficiency in Swedish corresponding to Swedish B, English corresponding to English A. Furthermore: 7,5 hp in mathematics and 6 hp in computer science or programming technics.

Recommended prerequisites

SF1511/DN1212 Numerical Methods and Fundamentals of Programming.


No information inserted


No information inserted

Examination and completion

Grading scale *

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

Examination *

  • LABD - Programming assignments, 3.0 credits, Grading scale: A, B, C, D, E, FX, F
  • LABP - Programming assignments, 3.0 credits, Grading scale: P, F
  • TEN1 - Examination, 3.0 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.

Under special circumstances, other examination formats may be used.

Opportunity to complete the requirements via supplementary examination

No information inserted

Opportunity to raise an approved grade via renewed examination

No information inserted


Alexander Baltatzis

Further information

Course web

Further information about the course can be found on the Course web at the link below. Information on the Course web will later be moved to this site.

Course web DD1321

Offered by

EECS/Computer Science

Main field of study *


Education cycle *

First cycle

Add-on studies

Second courses in computer science DD2350, DD1418, DD1334, DD1377, DD2431, DH2323. Furthermore DD1380/DD2310 followed by DD1385 or DD1389.


Alexander Baltatzis, tel: 790 6209, e-post: alba@kth.se

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.

Supplementary information

The course is given together with DD1320 Applied Computer Science.

You can only count one of the following courses in your exam: DD1320, DD1321, DD1325, DD1327, DD1338, DD1339, DD1340, DD1341, DD1343, DD1344, DD1345, DD2325, EL2310, HI1201, ID1020.

In this course, the EECS code of honor applies, see: