Tags:
tag this topic
create new tag
view all tags
---++Diario delle lezioni (Ingegneria degli Algoritmi, A.A. 2010-2011) <font color="#AF0F0F"><b>Friday, March 18th</b></font> - Introduction and overview. Administrivia <font color="#AF0F0F"><b>Tuesday, March 22nd</b></font> - Microscopic and macroscopic operations. Back of the envelope calculations for external memory. Fundamental external memory bounds for scanning and sorting sequences. Why scan and sort? An example related to permuting. <font color="#AF0F0F"><b>Friday, March 25th</b></font> - Matrix multiplication. Improving temporal locality through blocking. From row-major order to Z-layout: Vitter and Shriver's recursive algorithm. * C. Demetrescu and I. Finocchi: notes on [[%ATTACHURL%/matmul.pdf][blocked matrix multiplication]], 2011. * J. S. Vitter and E. A. M. Shriver: [[%ATTACHURL%/ViS94.sorting_io.pdf][Algorithms for Parallel Memory I: Two-Level Memories]], appeared in Algorithmica, 1994. Only Section 7 (matrix multiplication), pages 144-145. In the analysis, assume P=1 (we considered only the case with one single disk, instead of P parallel disks). <font color="#AF0F0F"><b>Tuesday, March 29th</b></font> - Hands on external memory algorithms. Experiment 1: which B should we use? Goal: maximizing disk throughput. Experiment 2: matrix multiplication. Evaluating the effect of I/Os in computationally intensive computations. * [[%ATTACHURL%/MakeRandFile.c][MakeRandFile.c]]: utility for creating large files * [[%ATTACHURL%/rand-file-scan.c][rand-file-scan.c]]: random file scan (experiment 1) * [[%ATTACHURL%/iterative-matmul.c][iterative-matmul.c]]: blocked matrix multiplication (experiment 2) * [[%ATTACHURL%/gnuplot.tar.gz][gnuplot.tar.gz]]: charts and gnuplot sources related to experiment 1 <font color="#AF0F0F"><b>Friday, April 1st</b></font> - External memory sorting. 2-way mergesort: I/O analysis, recursive and iterative implementation, discussion of its key inefficiency. Multiway mergesort: analysis of the number of I/Os and of the running time (using a priority queue for minimum extraction). Can we do more than one pass? Another back of the envelope calculation. <font color="#AF0F0F"><b>Tuesday, April 5th</b></font> - Proving lower bounds via adversary-based arguments. Two examples: 20-questions game, comparison-based sorting. Lower bound on the number of I/Os required by external memory comparison-based sorting algorithms. * Sally A. Goldman and Kenneth J. Goldman: [[%ATTACHURL%/adv-lb.pdf][an introduction to adversary-based lower bounds]]. * Gerth Stølting Brodal and Rolf Fagerberg: [[%ATTACHURL%/sorting-2.pdf][sorting upper and lower bounds]] (slides). <font color="#AF0F0F"><b>Tuesday, April 12th</b></font> - Introduction to cache-friendly algorithms. Recap on memory hierarchy. How do caches work? Sets, lines, blocks. Fundamental cache parameters. Impact of associativity: conflict misses (an example on direct-mapped caches). Cache performance metrics. * R. Bryant, D. O'Hallaron. Computer systems: a programmer's perspective. Chapter 6. * Slides on memory hierarchies: [[%ATTACHURL%/memoryHierarchies_part1.pdf][part 1]] <font color="#AF0F0F"><b>Wednesday, April 13th</b></font> - The memory mountain: effect of different strides (spatial locality) and different working set sizes (temporal locality). Writing cache-friendly code: miss rate analysis for matrix multiplication with permuted loops. Programming difficulties posed by hierarchical memories. Towards a theoretical model: introduction to cache-obliviousness. Ideal cache and justification. * R. Bryant, D. O'Hallaron. Computer systems: a programmer's perspective. Chapter 6. * Slides on memory hierarchies: [[%ATTACHURL%/memoryHierarchies_part2.pdf][part 2]] * Lecture notes by Erik Demaine: [[http://erikdemaine.org/papers/BRICS2002/][Cache-oblivious algorithms and data structures]] * Video lectures from MIT's Introduction to Algorithms course on cache-oblivious algorithms (with transcripts): [[http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-046j-introduction-to-algorithms-sma-5503-fall-2005/video-lectures/lecture-24-advanced-topics-cont./][lecture 24]], [[http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-046j-introduction-to-algorithms-sma-5503-fall-2005/video-lectures/lecture-25-advanced-topics-cont.-discussion-of-follow-on-classes/][lecture 25]]. * Slides on cache-oblivious algorithms: [[%ATTACHURL%/cacheOblivious_model_intro.pdf][introduction to the ideal cache model]] <font color="#AF0F0F"><b>Friday, April 15th</b></font> - First cache oblivious algorithms and analysis. 1) Scan. 2) Deterministic selection: a failed analysis, a successful analysis using a stronger base case. 3) Binary search: stronger base case doesn't help here. Van Emde Boas recursive layout. * Demetrescu, Finocchi, Italiano: [[%ATTACHURL%/selection.pdf][randomized and deterministic selection]] * Lecture notes by Erik Demaine (linked above) <font color="#AF0F0F"><b>Tuesday, April 19th</b></font> - Cache-oblivious matrix multiplication. Cache-oblivious sorting: introduction to funnelsort, structure of a k-way merger. Space required by a k-way merger. Analysis of cache misses (to be completed). * [[%ATTACHURL%/FrigoLePr99.ps.gz][Original cache-oblivious paper]] by Frigo, Leiserson, Prokop, and Ramachandran, appeared in IEEE Symposium on Foundations of Computer Science, FOCS'99. The matrix multiplication algorithm described in class only applies to square matrices, and the analysis is simpler than the one contained in the paper. <font color="#AF0F0F"><b>Friday, April 22nd</b></font> - vacanze di Pasqua <font color="#AF0F0F"><b>Tuesday, April 26th</b></font> - vacanze di Pasqua <font color="#AF0F0F"><b>Friday, April 29th</b></font> - Interruzione della didattica per prove intermedie <font color="#AF0F0F"><b>Tuesday, May 3rd</b></font> - *Prova intermedia alle 10:00* <font color="#AF0F0F"><b>Friday, May 6th</b></font> - K-way merger: complete analysis of cache misses. * FOCS'99 paper by Frigo, Leiserson, Prokop, and Ramachandran (linked above) <font color="#AF0F0F"><b>Tuesday, May 10th</b></font> - Ore restituite al corso di Algoritmi Avanzati <font color="#AF0F0F"><b>Friday, May 13th</b></font> - Algorithms for data streams. Motivations and model. Approximating the solution (parameter epsilon) and probabilistic guarantees (parameter delta). The frequent items problem: definitions. * C. Demetrescu and I. Finocchi: survey on [[%ATTACHURL%/chapter08-dataStreams.pdf][algorithms for data streams]], Handbook of Applied Algorithms: Solving Scientific, Engineering and Practical Problems, 2008. * [[http://www.americanscientist.org/issues/pub/the-britney-spears-problem/1][The Britney Spears problem: tracking who's hot and who's not presents an algorithmic challenge]], by Brian Hayes. A popular paper on stream algorithmics appeared in volume 96 of the American Scientist, 2008. <font color="#AF0F0F"><b>Tuesday, May 17th</b></font> - Sampling infinite streams: reservoir sampling (algorithm and analysis). Frequent items: sticky sampling algorithm (without analysis). * Original VLDB 2002 paper describing Sticky Sampling: [[%ATTACHURL%/02vldb-freq.pdf][Approximate Frequency Counts over Streaming Data]], by G. Manku and R. Motwani. * On the personality of [[http://news.stanford.edu/news/2009/june10/rajeev_motwani-061009.html][Rajeev Motwani]], Stanford Report, 2009. <font color="#AF0F0F"><b>Tuesday, May 24th</b></font> - Frequent items: analysis of sticky sampling. Definition of frequency moments. Introduction to probabilistic counting. <font color="#AF0F0F"><b>Friday, May 27th</b></font> - Number of distinct elements: probabilistic counting. * Survey on algorithms for data streams (linked above) <font color="#AF0F0F"><b>Tuesday, May 31st</b></font> - Concurrent data structures: what does it mean to be correct? An example: concurrent queues. * "The art of multiprocessor programming", Herlihy and Shavit: section 3.1 and section 3.2 * Correctness conditions and linearizability: [[%ATTACHURL%/chapter_03.pptx][slides (pptx)]] <font color="#AF0F0F"><b>Tuesday, June 7th</b></font> - Correctness: all about linearizability. Progress conditions. * "The art of multiprocessor programming", Herlihy and Shavit: section 3.5 and section 3.6 <font color="#AF0F0F"><b>Tuesday, June 14th</b></font> - Discussion of homeworks and exams. Q&A. -- Users.IreneFinocchi - 19 Mar 2011
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r3
<
r2
<
r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r3 - 2012-04-20
-
IreneFinocchi
Log In
or
Register
Ing_algo Web
Create New Topic
Index
Search
Changes
Notifications
Statistics
Preferences
Prenotazioni esami
Laurea Triennale ...
Laurea Triennale
Algebra
Algoritmi
Introduzione agli algoritmi
Algoritmi 1
Algoritmi 2
Algoritmi per la
visualizzazione
Architetture
Prog. sist. digitali
Architetture 2
Basi di Dati
Basi di Dati 1 Inf.
Basi di Dati 1 T.I.
Basi di Dati (I modulo, A-L)
Basi di Dati (I modulo, M-Z)
Basi di Dati 2
Calcolo
Calcolo differenziale
Calcolo integrale
Calcolo delle Probabilitą
Metodi mat. per l'inf. (ex. Logica)
canale AD
canale PZ
Programmazione
Fond. di Programmazione
Metodologie di Programmazione
Prog. di sistemi multicore
Programmazione 2
AD
EO
PZ
Esercitazioni Prog. 2
Lab. Prog. AD
Lab. Prog. EO
Lab. Prog. 2
Prog. a Oggetti
Reti
Arch. di internet
Lab. di prog. di rete
Programmazione Web
Reti di elaboratori
Sistemi operativi
Sistemi Operativi (12 CFU)
Anni precedenti
Sistemi operativi 1
Sistemi operativi 2
Lab. SO 1
Lab. SO 2
Altri corsi
Automi, Calcolabilitą
e Complessitą
Apprendimento Automatico
Economia Aziendale
Elaborazione Immagini
Fisica 2
Grafica 3D
Informatica Giuridica
Laboratorio di Sistemi Interattivi
Linguaggi di Programmazione 3° anno Matematica
Linguaggi e Compilatori
Sistemi Informativi
Tecniche di Sicurezza dei Sistemi
ACSAI ...
ACSAI
Computer Architectures 1
Programming
Laurea Magistrale ...
Laurea Magistrale
Percorsi di studio
Corsi
Algoritmi Avanzati
Algoritmica
Algoritmi e Strutture Dati
Algoritmi per le reti
Architetture degli elaboratori 3
Architetture avanzate e parallele
Autonomous Networking
Big Data Computing
Business Intelligence
Calcolo Intensivo
Complessitą
Computer Systems and Programming
Concurrent Systems
Crittografia
Elaborazione del Linguaggio Naturale
Estrazione inf. dal web
Fisica 3
Gamification Lab
Information Systems
Ingegneria degli Algoritmi
Interazione Multi Modale
Metodi Formali per il Software
Methods in Computer Science Education: Analysis
Methods in Computer Science Education: Design
Prestazioni dei Sistemi di Rete
Prog. avanzata
Internet of Things
Sistemi Centrali
Reti Wireless
Sistemi Biometrici
Sistemi Distribuiti
Sistemi Informativi Geografici
Sistemi operativi 3
Tecniche di Sicurezza basate sui Linguaggi
Teoria della
Dimostrazione
Verifica del software
Visione artificiale
Attivitą complementari
Biologia Computazionale
Design and development of embedded systems for the Internet of Things
Lego Lab
Logic Programming
Pietre miliari della scienza
Prog. di processori multicore
Sistemi per l'interazione locale e remota
Laboratorio di Cyber-Security
Verifica e Validazione di Software Embedded
Altri Webs ...
Altri Webs
Dottorandi
Commissioni
Comm. Didattica
Comm. Didattica_r
Comm. Dottorato
Comm. Erasmus
Comm. Finanziamenti
Comm. Scientifica
Comm Scientifica_r
Corsi esterni
Sistemi Operativi (Matematica)
Perl e Bioperl
ECDL
Fondamenti 1
(NETTUNO)
Tecniche della Programmazione 1° modulo
(NETTUNO)
Seminars in Artificial Intelligence and Robotics: Natural Language Processing
Informatica generale
Primo canale
Secondo canale
II canale A.A. 10-11
Informatica
Informatica per Statistica
Laboratorio di Strumentazione Elettronica e Informatica
Progetti
Nemo
Quis
Remus
TWiki ...
TWiki
Tutto su TWiki
Users
Main
Sandbox
Home
Site map
AA web
AAP web
ACSAI web
AA2021 web
Programming web
AA2021 web
AN web
ASD web
Algebra web
AL web
AA1112 web
AA1213 web
AA1920 web
AA2021 web
MZ web
AA1112 web
AA1213 web
AA1112 web
AA1314 web
AA1415 web
AA1516 web
AA1617 web
AA1819 web
Old web
Algo_par_dis web
Algoreti web
More...
Ing_algo Web
Create New Topic
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Account
Log In
Register User
Questo sito usa cookies, usandolo ne accettate la presenza. (
CookiePolicy
)
Torna al
Dipartimento di Informatica
E
dit
A
ttach
Copyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback