






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
This cheat sheet provides a concise overview of advanced data structures, including trees, heaps, hash tables, tries, and graph structures. It covers essential concepts, time and space complexities, and applications in algorithms such as dijkstra's and kruskal's. Designed to serve as a quick reference for students and professionals in computer science, offering a summary of key properties and operations for each data structure. It includes topics such as avl trees, red-black trees, segment trees, fenwick trees, binary heaps, fibonacci heaps, hash tables, tries, suffix trees, adjacency lists, union-find, skip lists, treaps, b-trees, and amortized analysis techniques. The cheat sheet also provides a table summarizing the time and space complexities of various data structures, making it a valuable resource for algorithm analysis and design.
Typology: Cheat Sheet
1 / 10
This page cannot be seen from the preview
Don't miss anything!







Theoretical Computer Science Cheat Sheet – Advanced Data Structures CS 6310 Study Notes | Data Structures and Algorithms Student’s name Institution Course code Professor Date
Theoretical Computer Science Cheat Sheet – Advanced Data Structures CS 6310 Study Notes | Data Structures and Algorithms
Extract-min/max: O(log n) Heapify: O(n) Fibonacci Heaps Improved amortized time: Insert: O(1) Extract-min: O(log n) amortized. Used in Dijkstra’s algorithm, especially with large graphs.
Perfect Hashing Two-level hashing minimizes collisions. Useful in static datasets, such as compiler symbol tables. Universal Hashing Reduces worst-case scenarios. Randomly selects hash functions from a family.
Union by rank. Time complexity is nearly O(1) with Ackermann’s function.
B-Trees contain keys in internal nodes. B+ Trees store all keys in leaf nodes for faster range queries.
References Cormen, T. H., Leiserson, C. E., Rivest, R. L., & Stein, C. (2009). Introduction to algorithms (3rd ed.). MIT Press. Weiss, M. A. (2013). Data structures and algorithm analysis in Java (3rd ed.). Pearson Education. Sedgewick, R., & Wayne, K. (2011). Algorithms (4th ed.). Addison-Wesley. Tarjan, R. E. (1983). Data structures and network algorithms. Society for Industrial and Applied Mathematics.