Skip to content

Page of the course "Algorithms and Data Structures (for Data Science)" at Department of Computer Science, University of Pisa

Notifications You must be signed in to change notification settings

rossanoventurini/adsds

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

Algorithms and Data Structures (for Data Science)

  • Teacher: Rossano Venturini
  • CFU: 9
  • Period: Second semester
  • Language: English
  • Classroom: here (code: 7ucbcgh)
  • Lectures schedule: Tuesday 9:00-11:00 (Aula Fib C), Wednesday 9:00-11:00 (Aula Fib C), and Friday 9:00-11:00 (Aula Fib C).
  • Question time: After lectures or by appointment

Goals and opportunities

The course introduces basic data structures and algorithmic techniques that allow students to solve computational problems on the most important data types, such as sequences, sets, trees, and graphs.

The lectures will be complemented by an intensive activity in laboratory. Students will experiment with algorithms and data structures by writing their own implementations or by using third-party libraries.

The goal of the class is to enable students to design and implement efficient algorithms, choosing the most appropriate solutions in their future projects.

Syllabus

  • Introduction and basic definitions: algorithm, problem, instance.

  • Computational complexity analysis of algorithms.

  • Sorting: Mergesort, Quicksort and Heapsort.

  • Searching: Binary Search, Binary Search Tree, Trie, and Hashing.

  • Algorithms on Trees: representation and traversals.

  • Algorithms on Graphs: representation, traversals, and most important problems.

  • External memory model: sorting and searching.

Exam

Type Date Room Note
Theory 04/06/2024 14:00 Aula Fib C1
Lab 18/06/2024 14:00 Google Meet Please send your solutions to me by 15/06/2024. Important: Please Cut&Paste your solutions to this Jupyter Notebook and send me just this file with your name and surname on its filename. Please read the very important note below.
Theory 25/06/2024 14:00 Aula Fib C1
Lab 08/07/2024 16:00 Google Meet Please send your solutions to me by 06/07/2024. Important: Please Cut&Paste your solutions to this Jupyter Notebook and send me just this file with your name and surname on its filename. Please read the very important note below.
Theory 16/07/2024 14:00 Aula Fib C1

Very important! You are allowed to verbally discuss solutions (e.g., a strategy to solve a problem) with other students, BUT you have to implement all the solutions yourself. Thus, sharing implementations or implementing a solution with others is strictly forbidden.

References

  • Introduction to Algorithms,  3rd Edition, Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest, Clifford Stein, The MIT Press, 2009 (Amazon) [CCLR]
  • Algorithms, 4th Edition, Robert Sedgewick, Kevin Wayne, Addison-Wesley Professional, 2011 (Amazon) [RS]
  • Algorithms, Sanjoy Dasgupta, Christos Papadimitriou, Umesh Vazirani, McGraw-Hill, 2006. (Amazon) [DPZ]

Lectures

Date Lecture References Material
20/02/2024 Introduction to analysis of algorithms. CCLR Sect. 2.1 Notes next 3 lectures
21/02/2024 Insertion Sort: Correctness and analysis. CCLR Sect. 2.2 VisuAlgo Sorting
23/02/2024 Insertion Sort: Correctness and analysis. CCLR Sect. 2.2 VisuAlgo Sorting
27/02/2024 Selection Sort: Correctness and analysis. Selection Sort vs Insertion Sort and VisuAlgo Sorting
28/02/2024 Divide and Conquer. Merge Sort. CCLR Sect. 2.3 VisuAlgo Sorting and Notes next 3 lectures
01/03/2024 Laboratory: Basic sorting algorithms Jupyter Notebook Mandatory exercises
05/03/2024 Divide and Conquer. Merge Sort. (contd) Binary search. CCLR Sect. 2.3, CCLR Sect 3.1 VisuAlgo Sorting
06/03/2024 QuickSort. Best and worst cases. No average time analysis. CCLR Sects 7.1, 7.2, and 7.3. VisuAlgo Sorting and Notes next 2 lectures
08/03/2024 Laboratory: MergeSort and QuickSort. Jupyter Notebook Mandatory exercises
12/03/2024 QuickSort. Best and worst cases. No average time analysis. CCLR Sects 7.1, 7.2, and 7.3. VisuAlgo Sorting and Notes next 2 lectures
13/03/2024 Lower Bound for sorting in the comparison model. CCLR Sect. 8.1 Notes
15/03/2024 Laboratory: Applications of sorting (I). Jupyter Notebook Mandatory exercises
19/03/2024 Sorting in linear time: Counting Sort. CCLR Sect. 8.2 VisuAlgo Sorting. Notes next 2 lectures
20/03/2024 Sorting in linear time: Radix Sort. CCLR Sect. 8.3. VisuAlgo Sorting
22/04/2024 Python best practices.
03/04/2024 Python best practices.
05/04/2024 Python best practices.
08/04/2024 Python best practices.
10/04/2024 Dictionary problem with Hashing. CCLR Sect. 11.1, 11.2, and 11.4 (no analysis) Notes
12/04/2024 Laboratory: Hashing. Jupyter Notebook Mandatory exercises
16/04/2024 QuickSelect. Priority queues: Heap. CCLR Sect. 9.1, 9.2 and CCLR Ch. 6 Notes next 3 lectures
17/04/2024 Priority queues: Heap. CCLR Ch. 6 VisuAlgo Heap
19/04/2024 Laboratory: Hashing: Applications. Jupyter Notebook Mandatory exercises
23/04/2024 Binary Search tree. CCLR Sect. 12.1, 12.2, and 12.3 Visualgo BST
24/04/2024 Binary Search tree. CCLR Sect. 12.1, 12.2, and 12.3 Visualgo BST
26/04/2024 Laboratory: Applications of sorting (II). Jupyter Notebook Mandatory exercises
30/04/2024 Exercises: Visits of a tree. Notes next 2 lectures
03/05/2024 Laboratory: Binary Search Tree. Jupyter Notebook Mandatory exercises
07/05/2024 Exercises: Visits of a tree.
08/05/2024 Graphs: representations and BFS. CCLR Sect. 22.1 and 22.2 (no proofs) Notes next 2 lectures
10/05/2024 Graphs: DFS. CCLR Sect. 22.3 (no proofs) Graph representations and BFS/DFS
14/05/2024 Exercises Notes
15/05/2024 Exercises Notes
17/05/2024 Laboratory: Graphs. Jupyter Notebook Mandatory exercises

About

Page of the course "Algorithms and Data Structures (for Data Science)" at Department of Computer Science, University of Pisa

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published