Download presentation
Presentation is loading. Please wait.
Published byDarlene Charlotte Wiggins Modified over 6 years ago
1
Algorithmics and Programming II: Introduction
Jordi Cortadella and Jordi Petit Department of Computer Science
2
Algorithmics and Programming II
Lecturers: Jordi Cortadella Jordi Petit Sessions: Theory & Problems (Jordi C.) Lab (Jordi P.) Languages: English (Theory) Catalan (Problems & Lab) Introduction © Dept. CS, UPC
3
Material Slides, exercises (still under construction): Jutge (for lab sessions): Lliçons (by J. Petit and S. Roura): Introduction © Dept. CS, UPC
4
Evaluation Evaluation items: Grading:
Project (Proj), Parcial Lab (PLab), Final Theory (FTh), Final (FLab). Grading: 𝑁 1 =0.2 Proj+0.2 PLab+0.3 FTh+0.3 FLab 𝑁 2 =0.2 Proj+0.4 FTh+0.4 Flab 𝑁= max ( 𝑁 1 , 𝑁 2 ) Introduction © Dept. CS, UPC
5
Projects Class for Polynomials: 𝑢oogle (micro-Google):
Design a class to operate with polynomials (evaluation, addition, multiplication, division, gcd, and Fast Fourier Transform (FFT)). Language: C++. 𝑢oogle (micro-Google): Design a web search application. Optional: implement a simple page rank algorithm. Language: python. Introduction © Dept. CS, UPC
6
Peer and self assessment
One of the projects (polynomials) will be evaluated by the students themselves. Each project will be evaluated by three students. The grade will be calculated as the average grade given by the students. The evaluation will be completely blind. Biased evaluations will be detected and penalized. Each student will have the right to request the evaluation by the professor (who can upgrade or downgrade the evaluation given by the students). Introduction © Dept. CS, UPC
7
Objective Confronting large and difficult problems. How?
Skills for abstraction and algorithmic reasoning. Design and use of complex data structures. Techniques for complexity analysis. Methodologies for modular programming. High-quality code. Introduction © Dept. CS, UPC
8
Problems on polygons Compute the convex hull of 𝑛 given points in the plane. Introduction © Dept. CS, UPC
9
The Closest-Points problem
Input: A list of 𝑛 points in the plane 𝑥 1 , 𝑦 1 , 𝑥 2 , 𝑦 2 ,…, 𝑥 𝑛 , 𝑦 𝑛 Output: The pair of closest points Simple approach: check all pairs O( 𝑛 2 ) We want an O(𝑛 log 𝑛) solution ! Introduction © Dept. CS, UPC
10
Navigation: find the shortest path
Introduction © Dept. CS, UPC
11
training, training, training …
The secret: training, training, training … Introduction © Dept. CS, UPC
12
… up to the finish line Introduction © Dept. CS, UPC
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.