Unit 11: Algorithms (DSA)– Exam Revision Notes
1. Introduction to Algorithms 2. Types of Algorithms 3. Algorithm Design Strategies 4. Key Algorithm Concepts 5. Applications of Algorithms Key Takeaways – Unit 11
1. Introduction to Algorithms 2. Types of Algorithms 3. Algorithm Design Strategies 4. Key Algorithm Concepts 5. Applications of Algorithms Key Takeaways – Unit 11
1. Introduction to Graphs 2. Types of Graphs 3. Graph as an Abstract Data Type (ADT) 4. Graph Traversal 5. Shortest Path & Spanning Trees 6. Transitive Closure 7. Applications of Graphs ✅ Key Takeaways – Unit 10
1. Introduction to Searching 2. Types of Searching Techniques 1. Sequential (Linear) Search 2. Binary Search 3. Tree Search 4. Hashing 3. Efficiency Comparisons Search Method Best Case Average Case Worst Case Notes Sequential O(1) O(n/2) O(n) Works on unsorted data Binary O(1) O(log n) O(log n) Sorted array required BST O(1) O(log n) O(n)…
1. Introduction to Sorting 2. Common Sorting Algorithms 1. Insertion Sort 2. Selection Sort 3. Bubble Sort 4. Quick Sort 5. Merge Sort 6. Heap Sort 7. Other Sorts 3. Efficiency of Sorting Algorithm Time Complexity (Best) Average Worst Stable? Insertion O(n) O(n²) O(n²) Yes Selection O(n²) O(n²) O(n²) No Bubble O(n) O(n²) O(n²) Yes…
1. Introduction to Trees 2. Basic Operations in Binary Tree 3. Tree Search and Insertion/Deletion 4. Balanced Trees 5. Special Trees 6. Applications of Trees ✅ Key Takeaways – Unit 7
1. Introduction to Recursion 2. Principle of Recursion 3. Recursion vs Iteration Feature Recursion Iteration Concept Function calls itself Looping structure (for/while) Memory Uses stack Constant memory Code Simplicity Shorter, elegant Longer for same logic Efficiency Slightly slower (stack overhead) Faster execution Example Factorial, Fibonacci Factorial using loop 4. Common Recursion Examples Recursive formula: Move…
1. Introduction to Linked List 2. Linked List as an Abstract Data Type (ADT) 3. Types of Linked Lists 4. Operations on Linked List 5. Linked Stacks and Queues 6. Advantages of Linked Lists 7. Applications Key Takeaways – Unit 5
1. Introduction to List 2. List as an Abstract Data Type (ADT) 3. Types of Lists 4. Array Implementation of Lists 5. Queues as a List 6. Applications of Lists Key Takeaways – Unit 4
1. Introduction to Queue 2. Queue as an Abstract Data Type (ADT) 3. Types of Queue 4. Implementation of Queue 5. Applications of Queue 6. Example: Circular Queue Operations ✅ Key Takeaways – Unit 3
1. Introduction to Stack 2. Stack as an Abstract Data Type (ADT) 3. Implementation of Stack 4. Stack Applications 5. Example: Postfix Evaluation Algorithm Example: Evaluate 5 3 2 * + 6. Advantages of Stack ✅ Key Takeaways – Unit 2