Design Analysis Algorithms Notes
Design Analysis Algorithms Notes
1. Divide and Conquer: Examples include Merge Sort, Quick Sort, and Binary Search.
3. Dynamic Programming: Examples - Longest Common Subsequence, Travelling Salesman Problem, and
Floyd-Warshall Algorithm.
Sorting Algorithms
1. Quick Sort: Average case - O(n log n), Worst case - O(n^2).
4. Insertion Sort: Time complexity - O(n^2), but efficient for small or nearly sorted datasets.
Graph Algorithms
Complexity Classes
Additional Topics