Section outline

  • Ce cours s’adresse aux étudiant.e.s en génie civil, sciences de l’environnement et science et génie des matériaux de première année à l’EPFL. Le premier cours aura lieu le vendredi 11 septembre 2026 à /!\ 8h15 /!\, en salles CE 1 3 et CE 1 106 (retransmission).
     
    Enseignant·e·s: Mirjana Stojilović (partie programmation) et Olivier Lévêque (partie théorique)
     
    Assistant·e·s:
    • Partie programmation:
      Assistante principale: Ana Zarić
      (ana.zaric@epfl.ch)
      BC 0 7: Solomée Asnake, Raid Taha
      BC 0 8: Stephan Ferrieri, Lina Hmamouchi

      CM 1 103:  Alexandre Marichez-Liew, Lilya Ouarrach
      CM 1 110: Yassine El Harti
      CM 1 112: Ghaith Skhiri, Alexia Stoian
      INF 2 (salle sans ordinateurs): Iskandar Ghobril, Mohamed Nouira
    • Partie théorique:
      AAC 1 37: Martina Delcroix, Cleo Motta Pacheco, Oscar Kuder, Loris Verga, Célia Coste
      AAC 1 32: Rachel Meng, Timothée Beaufils, Sara El Harti
      CO 0 15: Solomée Asnake, Mathis Laville, Margaux Fustinoni
      CO 0 16: Yorick Richard
      , Adèle Linette
      CO 0 17: Thomas Capol, Ali Taibi

    Horaires:
    • Partie programmation:
      • séance d'exercices les vendredis de 10h15 à 12h00:
      •    en salles BC07-08, CM 1 103, CM 1 110, CM 1 112 et INF 2
    • Partie théorique:
                cours les vendredis de 13h15 à 15h00:
    Ressources pour le cours (partie théorique):
     
    Calcul de votre note finale:
    • midterm du 6 novembre: 40% (info détaillées: voir plus bas en semaine 8)
    • projet de programmation: 15%
    • examen final du 18 décembre: 40% (info détaillées: voir plus bas en semaine 14)
    • quiz sur la sécurité informatique (à faire sur Moodle d'ici le dimanche 1er novembre 2026):  5%
    • Partie théorique:

      • Algorithmes: introduction générale
      • Ingrédients de base des algorithmes

    • Software development


      Programming:
      • About the course
      • Python interactive interpreter
      • Exercises:
        • Setting up the working environment for Python
        • First contact with the Unix environment

      Image (c) DETHAl / AdobeStock

    • This lecture provides information about the organization of the course throughout the semester.

    • Let us warm up by interacting with Python interpreter.
      Online reading: Link

    • Connectez-vous sur l’infrastructure des postes de travail virtuels. Choisissez une des machines virtuelles IC-CO-IN-SC-INJ-2026-Fall  (et pas une autre).

    • The UbuntuIntro exercise contains several practical concepts regarding using a terminal in an operating system such as Ubuntu. We recommend that you do it to see that you don't need a visual editor to interact with the operating system.

      Note: The topic is not directly related to Python programming and will not be on the exam. Despite that, you should not ignore it, as it presents the basics necessary for anyone using a Linux operating system.
    • Fichiers pour la configuration sur les machines virtuelles de l'EPFL, à télécharger et utiliser selon les instructions du PDF

    • Ci-dessous, les fichiers de configuration pour vos propres machines, à télécharger et à utiliser selon les instructions du PDF.

    • Partie théorique: 

      • Algorithmes et sous-algorithmes
      • Complexité temporelle d'un algorithme


    • Software engineeringProgramming: 

      • Variables and types
      • Numbers, Booleans
      • Operators and their precedence

    • Try solving the exercises in the Python interpreter without using if-elif-else constructs (for those who know how to use them in Python). You can also write all commands in one .py file (a Python script) and run it if that suits you better. We will share the solution in one file so you can easily change and rerun it.

      To run, press the "play" button on the top right corner of your Visual Studio Code editor. Do not forget to activate the environment that you installed last week! :-)

      Next week, we will study if-elif-else constructs, the preferred way to solve some of the problems in this exercise set.

    • Read the lecture slides ICC-P-Lecture02-NumbersBooleans, starting from Slide 21 and continuing to the end.

      Pay particular attention to the different assignment operators. Try coding the examples provided in the slides, then modify the operators and observe how the results change.

      Next, review the table showing operator precedence. Work through the given examples first with pen and paper, and then verify your answers by running the corresponding Python code.

  • ICC-T: Séance de réponses aux questions le mardi 3 novembre de 10h00 à 12h00 en salles CE 1 5, CE 1 100 et GC A3 30.

    Le midterm aura lieu le 6 novembre de 9h00 à 12h00.

    L'examen se déroulera dans les salles CM 1 120, AAC 0 14, AAC 0 20, BC 01, CM 1 105, INF 1 et INF 119. Merci de consulter le plan de répartition en pièce jointe à cette annonce pour connaître la salle qui vous est attribuée.

    Attention : les étudiants bénéficiant d'un aménagement doivent se rendre en salle CM 1 120 pour commencer l'examen à 8h00.

    L'examen porte sur l'ensemble des notions abordées en cours et en exercices :

    • Théorie : jusqu'à la semaine 7 incluse.
    • Programmation : jusqu'à la semaine 6 incluse, y compris les boucles et les listes, mais sans les fonctions.

    Il compte pour 40% de la note finale, avec 25 points pour la théorie et 15 points pour la programmation.

    Pour la partie algorithmique, vous pouvez utiliser les algorithmes vus en cours sans les réécrire, à condition de bien préciser leurs données d'entrée et de sortie.

    Vous pouvez apporter :

    • Une feuille A4 recto verso de notes, manuscrites, rédigées sur tablette avec un stylet puis imprimées, ou dactylographiées. Les captures d'écran d'algorithmes sont également autorisées. Nous vous conseillons de préparer cette feuille vous-même : c'est un bon moyen de réviser le cours et les exercices !
    • Une calculatrice simple, par exemple de type TI-30 Eco RS ou plus élémentaire.
    • Des feuilles de brouillon vierges.

    Aucun autre appareil électronique n'est autorisé.

    Pensez à prendre votre carte CAMIPRO : afin de préserver l'anonymat des copies, seul votre numéro SCIPER devra figurer sur la première page de l'examen.

    Le cours et les exercices de théorie du vendredi 6 novembre après-midi auront lieu comme d'habitude.

  • Current week
    • Partie théorique: 

      • Signaux: reconstruction et théorème d'échantillonnage

    • ICC-T Solutions 10 File
      Available from 21 November 2026, 8:00 PM

    • Software developmentProgramming:

      • Dictionaries
      • 3...2...1...Mini-project starts!

    • ICC-P-Solution-Dictionaries Folder
      Available from 21 November 2026

    • Mini Programming Project: Urban Heat Island

      Please read the instructions below carefully for the graded project that comprises 15% of the total grade:
      1. Before submitting your code for grading, ensure that (ideally, all) local tests we provided pass successfully. We will notify you once it is up and running.
      2. We advise using the virtual machine (VDI) for coding and testing. We will not provide support for other operating systems (e.g., Mac) and programming environments.
      3. Make sure the file you submit for grading has the name cityHeat.py. Submitting a wrong (or wrongly named) file will result in losing all points in that grading attempt. All functions you are asked to write should have the names given in the template cityHeat.py and the explanation PDF. If you renamed a function, you will get 0 points for that function!
      4. After you upload the code for grading and hit the submit button, the grader will generate your total score and a file, report.txt, briefly describing the tests applied to your code and the results of those tests (success or failure).
      5. The maximum number of grading attempts per group is 10. The final score will be the score of your last submission. Therefore, once you receive a 100% score, you do not need to continue submitting. Please stop submitting to help reduce the workload on the server.
      6. Each submission from a member of a group will count towards the 10-submission limit per group. Therefore, be careful not to submit the wrong file, an empty file, or the same file multiple times. The submission cannot be reverted.
      7. The submission page on Moodle will remain open until Friday, 4th of December, 23:59.
      8. Please note that every submitted code enters a waiting list. Hence, if there are many submissions at once, the waiting list will grow, and grading will take longer than usual (many minutes may pass before your turn to grade). Because of the above, we advise that you
        (a) Do not wait until the last minute to submit your code for grading
        (b) If you see that the grading is taking longer than usual, do not resubmit again (resubmitting will only make the waiting list even longer for everyone accessing the server, and it will also waste your budget of 10 grading attempts).
      9. Do not worry, as long as you submit your code before the deadline, it will get graded (the delay will depend on the length of the waiting list), and even if the server completes the grading after the deadline, we will accept the obtained score.
      10. Consultation and discussion with your peers are allowed. However, it is strictly forbidden to submit someone else's code for any reason or reuse any snippet of code from others! If we detect plagiarism, we will treat it as an attempt to cheat, resulting in a score of zero (in addition to a violation of the code of conduct).
      11. Sharing any snippet of your code publicly on the forum is prohibited. In that case, we will immediately make the post private, and the person who submitted it will lose one submission attempt.
      12. It is strictly forbidden to run system commands on the grading server (for example, running commands or downloading anything from the web) or do any potentially harmful activity. If you submit anything other than the file we ask for, we will revoke the group's permission to submit and give them a zero score for the project.
      13. It is also forbidden to use AI tools for generating code. AI-generated code will result in a score of zero.
      14. For issues with accessing or working with the Moodle autograder, please feel free to post on the Ed forum or contact Ana Zaric (ana.zaric@epfl.ch).
      15. We will make the submission portal available for you on Monday, Nov. 23rd.

      The project will be worth 15% of your final grade. The grade breakdown is as follows:

      • 10%: the score from the automated grader.
      • 2%: code formatting. As explained in the document handout, you will need to
        • Use autopep8 to format your code (1%). To show that you know how to format your code, you must show that you have the autopep8 extension installed and can use it during the live demo session (see below). 
        • Use correct naming conventions and comment your code to make it understandable (1%). 
      • 3% (Individual grade): live demo.
        After you finish the project (either reach a 100% score on the grader, exhaust your grading attempts, or the deadline passes), you will be allowed to give a live demo of your code. For this, you will need to reach out to a student assistant. They will download your last submission from Moodle and you will be able to demonstrate live that you know how to run the simulator and understand how it works. The assistant can ask you any questions about your code, and you should be able to answer them without help from anyone else. These three percent will be individual score (i.e., per person, not per group), which means you should understand the code of your project as a whole, including the parts your group member wrote.
      Good luck, and have fun with the project!
    • Partie théorique: 

      • Compression de données
      • Entropie
      • Algorithmes de Shannon-Fano et Huffman
      • Théorème de Shannon
    • ICC-T Solutions 11 File
      Available from 28 November 2026, 8:00 PM

    • Software developmentProgramming:

      • Tuples and sets
      • No new exercises; time to work on the mini-project...

    • ICC-P-Solution-TuplesSets Folder
      Available from 28 November 2026
    • Partie théorique: 

      • Correction d'erreurs et codes de Reed-Solomon
    • ICC-T Solutions 12 File
      Available from 5 December 2026, 6:00 PM

    • Software developmentProgramming:

      • Mini-project deadline today!
      • Revisiting important concepts
        • Recursion
      • Entropy exercise (tuples, dictionaries)

    • ICC-P-Solution-Entropy File PY
      Available from 5 December 2026
    • Partie théorique: 

      • Cryptographie (clé privée / clé publique) et sécurité

    • ICC-T Solutions 13 File
      Available from 11 December 2026, 8:00 PM

    • Software developmentProgramming:

      • Quick intro to Numpy and Jupyter Notebook
        • Not required for the final exam
      • Example of a past ICC exam (programming part)

    • "Python Like You Mean It (PLYMI) is a free resource for learning the basics of Python & NumPy, and moreover, becoming a competent Python user. The features of the Python language that are emphasized here were chosen to help those who are particularly interested in STEM applications (data analysis, machine learning, numerical work, etc.)."
      Written by Ryan Soklaski

    • ICC-P-Solution-Bin2Int Folder
      Available from 11 December 2026
    • These exercises are examples of past exam questions.

    • ICC-P-ExamQuestions-Recursion File PY

      To compute the expected answers, run this Python script.

      Available from 5 December 2026
    • These exercises are examples of past exam questions.

    • ICC-P-ExamQuestions-Sets File PY

      To compute the expected answers, run this Python script.

      Available from 12 December 2026
    • These exercises are examples of past exam questions.

    • ICC-P-ExamQuestions-Dictionaries File PY

      To compute the expected answers, run this Python script.

      Available from 12 December 2026