






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







Covers: Big-O Notation ⢠Arrays & Linked Lists ⢠Stacks & Queues ⢠Trees ⢠Graphs ⢠Sorting ⢠Searching ⢠Hash Tables ⢠Recursion ⢠Dynamic Programming
Suitable for: Intro Data Structures & Algorithms courses in Computer Science and Software Engineering programs
Table of Contents
Operation Time Complexity Search (unsorted) O(n) Insertion/deletion at end O(1) amortized Insertion/deletion at beginning/middle O(n) 2.2 Linked Lists
Type Description Singly linked list Each node points only to the next node Doubly linked list Each node points to both the next and previous node Circular linked list The last node points back to the first node EXAM TIP
Chapter 3 ā Stacks and Queues 3.1 Stacks (LIFO)
Chapter 4 ā Recursion 4.1 Key Components of Recursion
function factorial(n) { if (n <= 1) return 1; // base case return n * factorial(n - 1); // recursive case } 4.2 Recursion vs. Iteration
Chapter 5 ā Trees 5.1 Basic Tree Terminology
7.2 Heap Operations Operation Time Complexity Find min/max O(1) Insert O(log n) Delete min/max O(log n) Build heap from array O(n) 7.3 Priority Queues
Chapter 8 ā Hash Tables 8.1 How Hash Tables Work
8.3 Time Complexity Operation Average Case Worst Case Insert O(1) O(n) Search O(1) O(n) Delete O(1) O(n) EXAM TIP
Chapter 9 ā Graphs 9.1 Graph Terminology
9.4 Shortest Path Algorithms Algorithm Use Case Handles Negative Weights? Dijkstra's algorithm Single-source shortest path, non- negative weights No Bellman-Ford algorithm Single-source shortest path Yes EXAM TIP
Chapter 12 ā Dynamic Programming and Greedy Algorithms 12.1 Dynamic Programming (DP)
Final Exam Review ā Practice Questions
End of Notes ā Good luck with your studies!