Data Structures IThe essential class about construction of efficient data structures. Search trees, heaps, hashing. Worst-case, average-case and amortized complexity of data structures. Self-adjusting data structures. Behavior and analysis of data structures on systems with memory hierarchy. The lecture builds on the lectures Algorithms and Data Structures I and II and Programming I and II from the bachelor study.
- Name: Data Structures I
- Code: NTIN066
- Hours per week, examination: winter semester 2/1 C+Ex
- Language: English (Czech course)
- Year: 2017/18 (previous years: 2015/16 and 2016/17)
LectureSlides from lectures and their compact version are regularly updated.
- 1. lecture on 4.10.
- Amortized complexity: Binary counter, dynamic array, BB[alpha]-trees
- Resources: [14, lecture 5]
- 2. lecture on 11.10.
- 3. lecture on 18.10.
- (a,b)-trees (also called B-trees): basic operations (find, insert, delete), parallel access, A-sort, equivalence to Red-black trees
- Regular heaps: basic operations (insert, delete), decrease
- Resources: Wikipedia (B-tree, Red-black trees, Regular heaps, binomial heaps, Fibonacci heaps), [2, chapters 6, 13, 18, 19], [4, chapters 7, 10, 15]
- 4. lecture on 25.10.
- 5. lecture on 1.11.
- no lecture on 8.11.
- 6. lecture on 15.11.
- Cache-oblivious algorithms: mergesort, matrix transposition
- 7. lecture on 22.11.
- Cache-oblivious algorithms: van Emde Boas layout, Sleator & Tarjan theorem
- A. Koubková, V. Koubek: Datové struktury I. MATFYZPRESS, Praha 2011.
- T. H. Cormen, C.E. Leiserson, R. L. Rivest, C. Stein: Introduction to Algorithms. Third edition, MIT Press, 2009. On-line and many copies in our library.
- K. Mehlhorn: Data Structures and Algorithms I: Sorting and Searching. Springer-Verlag, Berlin, 1984. Available in our library.
- D. P. Mehta, S. Sahni eds.: Handbook of Data Structures and Applications. Chapman & Hall/CRC, Computer and Information Series, 2005, Accessible on-line from faculty IP addresses.
- D.D. Sleator, R.E. Tarjan: Self-Adjusting Binary Search Trees. J. ACM 32 (3): 652–686, 1985.
- E. Demaine: Cache-Oblivious Algorithms and Data Structures. 2002.
- R. Pagh: Cuckoo Hashing for Undergraduates. Lecture note, 2006.
- M. Thorup: High Speed Hashing for Integers and Strings. lecture notes, 2014.
- M. Thorup: String hashing for linear probing (Sections 5.1-5.4). In Proc. 20th SODA, 655-664, 2009.
- D.E. Knuth: The Art of Computer Programming: Volume 3: Sorting and Searching, 2nd edition, Addison-Wesley, 1998
- M. de Berg, O. Cheong, M. van Kreveld, M. Overmars, Computational Geometry: Algorithms and Applications, Springer, 3 rd edition, 2008. The second edition is on-line.
- J. Matoušek, J. Vondrák: The probabilistic method. Lecture notes, 2008. online
- Erik Demaine, and Srinivas Devadas: Introduction to Algorithms (6.006). MIT OpenCourseWare, Fall 2011. Video lectures
- Erik Demaine, Srinivas Devadas, and Nancy Lynch: Design and Analysis of Algorithms (6.046J). MIT OpenCourseWare, Spring 2015. Video lectures
- Eric Grimson, and John Guttag: Introduction to Computer Science and Programming (6.00). MIT OpenCourseWare, Fall 2008. Video lectures
- Donald E. Knuth: The art of computer programming. Volume 3, Sorting and searching. Addison-Wesley, 1973. Available in our library.
- K. Mehlhorn: Data structures and algorithms 3, Multi-dimensional searching and computational geometry. Springer, 1984. Available in our library.
- Martin Mareš, Tomáš Valla: Průvodce labyrintem algoritmů. CZ.NIC, 2017. On-line and in our library.
|(a,b)-tree: definition, insert, delete||1||3|
|(a,b)-tree: join, split, amortized, parallel||1|
|Complete d-ary heap||1||2|
|Lazy binomial heap||1|
|Hashish with separate chaining||1||10|
|Hashish with linear probing||1||10|
A summary of the course was written by Vladimír Čunát.
Prerequisites, Expected knowledge
- Algorithms and data structures
- Complexity, amortized analysis, O-notation, sorting, binary heap, binary search tree, AVL-tree, hashing with chaining, breadth-first search (BFS), depth-first search (DFS), topological sort, median finding, dynamic programming
- [13, lectures 1-9, 14, 15] [14, lectures 2, 6, 7] [2, chapters 1-13, 15-17, 22-24], , 
- Random variable, uniform distribution, independence, linearity of expectation, expected value, variance, Chernoff bound
- [12, chapters 1-5,7]
- Programming skills
- Programming in C
- Banahan, M.; Brady, D.; Doran, M.: The C Book. Addison-Wesley, 1991. online
- C reference
- Youtube tutorials; e.g. C Programming Tutorial, C From Beginner To Expert Programming Tutorial
- You can find many books about C language in our library. Visit the catalogue or ask personally in the library.
- C reference
ExaminationStudent must fulfill the following two conditions to pass this subject.
- Four homeworks will be assigned during the semester. For each homework you can get up to 100 points. You need 320 points to pass.
- Pass the exam (will be specified in the end of the semester). Use SIS to register in an exam term.