This space contains all the material related to the Computational Thinking and Programming course of the Digital Humanities and Digital Knowledge degree at the University of Bologna.
The official book of the course, Computational Thinking and Programming book, is available online in PDF format. Google Docs links are provided for each chapter to enable students to comment and suggest improvements. The suggested accompanying book for Python coding, How To Code in Python by Lisa Tagliaferri, is also freely available online in PDF and EPUB formats.
Keys:
- the = theoretical lecture
- lab = laboratory session
- wor = workshop session
- [14/10/24, the] Introduction to the course
- slides: HTML
- [16/10/24, the] Introduction to Computational Thinking
- [18/10/24, the] Algorithms
- [23/10/24, lab] Laboratory: 1st Lesson
- book chapter: HTML
- [25/10/24, the] Computability
- [11/11/24, the] Programming languages
- book chapter: PDF, Google Docs
- slides: HTML
- from How To Code in Python:
- Chapter "Understanding Data Types": introductory paragraphs and sections "Background", "Numbers", "Floating-Point Numbers", "Booleans", "Strings"
- Chapter "How To Use Variables": introductory paragraphs and sections "Understadning Variables", "Naming Variables: Rules and Style", "Reassigning Variables", "Multiple Assignment"
- Chapter "Understanding Boolean Logic": all content
- Chapter "How To Write Conditional Statements": all content
- Chapter "How To Define Functions": introductory paragraphs and sections "Defining a Function", "Working with Parameters", "Returning a Value"
- Python: first_algorithm_empty.py, first_algorithm_no_assignments.py, first_algorithm.py
- exercises: 1, 2, 3
- solutions: 1, 2, 3
- [13/11/24, the] Organising information: ordered structures
- book chapter: PDF, Google Docs
- slides: HTML
- from How To Code in Python:
- Chapter "How To Write Comments": all content
- Chapter "How To Import Modules": all content
- Chapter "Understanding Data Types": section "Lists"
- Chapter "Understanding Lists": introductory paragraphs and section "Indexing Lists"
- Chapter "How To Use List Methods": introductory paragraphs and sections "list.append()", "list.extend()", "list.remove()"
- Python: define_functions.py, list_instructions.py, stack_instructions.py, queue_instructions.py
- exercises: 1, 2, 3
- solutions: 1, 2, 3
- [15/11/24, lab] Laboratory: 2nd Lesson
- book chapter: HTML
- [18/11/24, the] Brute-force algorithms
- book chapter: PDF, Google Docs
- slides: HTML
- from How To Code in Python:
- Chapter "How To Construct While Loops": all content
- Chapter "How To Construct For Loops": all content
- Chapter "Understanding Tuples": all content
- Chapter "Understanding Lists": section "Constructing a List with List Items"
- Chapter "How To Use List Methods": section "list.insert()"
- Python: stack_from_list.py, run_forever.py, linear_search.py, insertion_sort.py
- exercises: 1, 2, 3, 4, 5
- [20/11/24, the] Organising information: unordered structures
- book chapter: PDF, Google Docs
- from How To Code in Python:
- Chapter "Understanding Data Types": section "Dictionaries"
- Chapter "Understanding Dictionaries": all content
- Chapter "How To Construct Classes and Define Objects": all content
- Python: set_instructions.py, dictionary_instructions.py
- [22/11/24, lab] Laboratory: 3rd Lesson
- book chapter: HTML
- [25/11/24, the] Recursion
- book chapter: PDF, Google Docs
- Python: run_forever_recursive.py, multiplication.py
- [27/11/24, the] Divide and conquer algorithms
- book chapter: PDF, Google Docs
- Python: immutable_values.py, mutable_values.py, immutable_and_mutable_variables.py, merge.py, merge_sort.py
- [29/11/24, lab] Laboratory: 4th Lesson
- book chapter: HTML
- [2/12/24, the] Dynamic programming algorithms
- book chapter: PDF, Google Docs
- Python: fib_dc.py, fib_dp.py
- [4/12/24, the] Organising information: trees
- book chapter: PDF, Google Docs
- Python: tree_instructions.py
- [6/12/24, lab] Laboratory: 5th Lesson
- book chapter: HTML
- [9/12/24, lab] Laboratory: 6th Lesson
- book chapter: HTML
- [11/12/24, the] Backtracking algorithms
- book chapter: PDF, Google Docs
- Python: peg_solitaire.py
- [13/12/24, the] Organising information: graphs
- book chapter: PDF, Google Docs
- Python: graph_instructions.py, multigraph_instructions.py, graph_attribute_instructions.py
- [16/12/24, the] Greedy algorithms
- book chapter: PDF, Google Docs
- Python: line_wrap.py
- [17/12/24, wor] Workshop
14/10/24 | 09:00-11:00 | Introduction to the course |
16/10/24 | 09:00-11:00 | Introduction to Computational Thinking |
18/10/24 | 12:00-14:00 | Algorithms |
23/10/24 | 09:00-11:00 | Laboratory: 1st Lesson |
25/10/24 | 12:00-14:00 | Computability |
11/11/24 | 09:00-11:00 | Programming languages |
13/11/24 | 09:00-11:00 | Organising information: ordered structures |
15/11/24 | 09:00-11:00 | Laboratory: 2nd Lesson |
18/11/24 | 09:00-11:00 | Brute-force algorithms |
20/11/24 | 09:00-11:00 | Organising information: unordered structures |
22/11/24 | 09:00-11:00 | Laboratory: 3rd Lesson |
25/11/24 | 09:00-11:00 | Recursion |
27/11/24 | 09:00-11:00 | Divide and conquer algorithms |
29/11/24 | 09:00-11:00 | Laboratory: 4th Lesson |
2/12/24 | 09:00-11:00 | Dynamic programming algorithms |
4/12/24 | 09:00-11:00 | Organising information: trees |
6/12/24 | 09:00-11:00 | Laboratory: 5th Lesson |
9/12/24 | 09:00-11:00 | Laboratory: 6th Lesson |
11/12/24 | 09:00-11:00 | Backtracking algorithms |
13/12/24 | 09:00-11:00 | Organising information: graphs |
16/12/24 | 09:00-11:00 | Greedy algorithms |
17/12/24 | 09:00-12:00 | Workshop |