Risorse bibliografiche
Risorsa bibliografica obbligatoria
Risorsa bibliografica facoltativa
Scheda Riassuntiva
Anno Accademico 2019/2020
Scuola Scuola di Ingegneria Industriale e dell'Informazione
Docente Ardagna Danilo
Cfu 10.00 Tipo insegnamento Monodisciplinare
Didattica innovativa L'insegnamento prevede  1.0  CFU erogati con Didattica Innovativa come segue:
  • Blended Learning & Flipped Classroom
  • MOOC

Corso di Studi Codice Piano di Studio preventivamente approvato Da (compreso) A (escluso) Insegnamento

Obiettivi dell'insegnamento

This course provides the students with all the skills necessary to write efficient algorithms and large-scale software, so as to be able to solve complex and big data problems on parallel systems. The emphasis is on teaching concepts applicable across a wide variety of problem domains (including scientific modelling, statistics, machine learning, operations research and quantitative finance), and transferable across a broad set of frameworks. The goal of the course is to enable students to master object oriented and parallel programming methods that nowadays are necessary to produce software systems with industrial strength quality. The course covers Object Oriented Programming (OOP) principles, C++, and OpenMPI for parallel programming. Each topic is treated both theoretically and practically. Through the course, the flipped class innovative teaching method will be exploited during lab sessions to allow students to acquire a good level of autonomy in learning new topics.

Risultati di apprendimento attesi

Students will learn how to:

  • Develop computational thinking skills to support the modelling, solution and analysis of advanced mathematical models
  • Structure a problem solution through OOP methods
  • Develop and compare parallel algorithms
  • Analyze software code written by others, use software libraries
  • Implement advanced methods and solve or analyze mathematical models in a parallel programming framework
  • Identify and evaluate software architectural choices
  • Apply complexity methods to evaluate multiple algorithms or data structure implementations
  • Develop and test code fulfilling problem requirements
  • Analyze and understand the goals, assumptions and requirements associated with a problem in the scientific computing, statistics or quantitative finance domains
  • Develop and structure software at large scale

The project and laboratory will allow students to:

  • Organize code in packages and classes for readability and reuse
  • Present their work in front of their colleagues during project labs

Argomenti trattati


Historically, parallel computing has been considered to be the high end of computing and has been used to model difficult problems in many areas of science and engineering. Today, commercial applications provide an equal or greater driving force in the development of faster programs. These applications require the processing of large amounts of data in sophisticated ways. Data-intensive applications such as data mining, recommender systems, financial modelling and multimedia processing have implications on the design of algorithms and provide a new challenge for the modern generation of computing platforms. Parallel processing is the only cost-effective method for the fast solution of these big data problems. The emergence of inexpensive parallel computers such as commodity desktop multiprocessors, graphic processors and clusters of entry level servers has made parallel methods generally applicable, as have software standards for portable parallel programming.


The course is structured in three parts.

  • The first part of the course covers modern OOP and introduces the fundamentals of the C++11 programming language. C++11 is used as the reference language throughout the rest of the course. Students will gain experience in designing simple but powerful object-oriented applications and in writing code using the C++11 language. Example problems cover both traditional computer science algorithms (sorting, searching, lists) as well as simple scientific computing algorithms (matrix computations, gradient descent).  This initial part provides the principles for developing at scale industry software.
  • The second part covers the main aspects of parallel computing: parallel architectures, programming paradigms, parallel algorithms. Parallel architectures range from inexpensive commodity multicore desktops, to general purpose graphic processors, to clusters of computers, to massively parallel computers containing tens of thousands of processors. Students learn how to analyze and classify these architectures in terms of their components (processor architecture, memory organization, and interconnection network).
  • The third part of the course introduces MPI, one of the most widely used standards for writing portable parallel programs. This part includes a significant programming component in which students face concrete examples from big data and scientific domains, machine learning, and operations research.

The flipped class innovative method will be exploited during lab sessions to help students to discuss their solution and to identify pros and cons with respect to the ones provided by the instructors and colleagues. The project laboratory will be supervised by the course instructor and by some tutors.

A project is an optional part of the course. The objective of projects is to help students in applying the approaches and principles taught during classes and to gain experience in team working.


Students are required to know programming principles and to have a good background in the C programming language or at least another computer language. The knowledge of concepts such as data types and variables, functions and parameter passing, pointers and memory management at runtime are considered preconditions to access this course.

Prerequisites can be overviewed by a set of video-lectures (in Italian) provided within the “Fondamenti di Informatica 1” MOOC of the “Laurea in Ingegneria Informatica Online” through the BeeP Politecnico di Milano system. Alternatively, prerequisites can be overviewed through a subset of classes available in English from Coursera. Interested students are invited to contact the teacher. 

Modalità di valutazione

The assessment will be based on a written exam at the end of the course and on the projects developed by teams including two or three students. Projects will be assigned after the exam only if the grade is greater than or equal to 27 and will provide an increase of up to 4 points. Deadlines for providing project artifacts will be negotiated with the instructors. The evaluation of projects will be based on the produced code and on an oral presentation.

The elements that will be considered in the various assessment activities are the followings:

Written test - Exercises focusing on design aspects

  • Design of data structures and algorithms
  • Identification and evaluation of alternative algorithms to solve a given problem
  • Definition of the high level architecture and main classes for a software system according to the OOP paradigm
  • Definition of code fragments in C++ and in OpenMPI for parallel programs

Assessment of laboratorial and projct artefacts

  • Assessment of the presentation of the work developed as part of laboratory activities or as a project developed by students either individually or in groups

Risorsa bibliografica obbligatoriaOfficial web site https://apc201920.wordpress.com
Risorsa bibliografica obbligatoriaStanley B. Lippman, Jos©e Lajoie e Barbara E. Moo, C++ Primer, Editore: Addison-Wesley, Anno edizione: 2012, ISBN: 9780321714114


Risorsa bibliografica obbligatoriaPeter S. Pacheco, An Introduction to Parallel Programming http://www.amazon.it/Introduction-Parallel-Programming-Peter-Pacheco/dp/0123742609
Risorsa bibliografica obbligatoriaBjarne Stroustrup, Programming - Principles and Practice Using C++, Anno edizione: 2014, ISBN: 978-0321-992789

Forme didattiche
Tipo Forma Didattica Ore di attività svolte in aula
Ore di studio autonome
Laboratorio Informatico
Laboratorio Sperimentale
Laboratorio Di Progetto
Totale 100:00 150:00

Informazioni in lingua inglese a supporto dell'internazionalizzazione
Insegnamento erogato in lingua Inglese
Disponibilità di materiale didattico/slides in lingua inglese
Disponibilità di libri di testo/bibliografia in lingua inglese
Possibilità di sostenere l'esame in lingua inglese
Disponibilità di supporto didattico in lingua inglese
schedaincarico v. 1.6.1 / 1.6.1
Area Servizi ICT