JCL

FEUP/DEI & INESC TEC

User Tools

Site Tools


teach:fpro:lectures:11

LE11: 23/11/2020

Master in Informatics and Computing Engineering
Programming Fundamentals
Instance: 2020/2021


Lecture #11 :: 23/11/2020

Goals

By the end of this class, the student should be able to:

  • Use the main operations and methods available to work with dictionaries
  • Describe the differences between dictionary aliasing and shallow copying

Content

  • 5.4 Data types: Dictionaries
    • 5.4.1 Dictionary operations
    • 5.4.2 Dictionary methods
    • 5.4.3 Aliasing and copying
    • 5.4.4 Counting letters
    • Sparse matrices
    • Memoisation
    • 5.4.4 Counting letters

Bibliography

  • Peter Wentworth, Jeffrey Elkner, Allen B. Downey, and Chris Meyers, How to Think Like a Computer Scientist — Learning with Python 3, Release 3rd Edition, 2020 [PDF] (Section 5.34)

Materials

Summary

  • Dictionary operations and methods. Aliasing and copying. Sparse matrices. Memoisation.

FPRO, 2020/21

« Previous | Index | Next »

teach/fpro/lectures/11.txt · Last modified: 03/01/2021 17:41 by Correia Lopes