2. Divide and Conquer:
Binary Search, Merge Sort, Quick Sort and their complexity.
Heap Sort and its complexity
Dynamic Programming:
Matrix Chain Manipulation, All pair shortest paths, single source shortest path.
Backtracking:
8 queens problem, Graph coloring problem.
Greedy Method:
Knapsack problem, Job sequencing with deadlines, Minimum cost spanning tree by Prim’s and Kruskal’salgorithm.
22. A max-heap viewed as (a) a binary tree and (b) an array
Typesofbinaryheaps:max-heapsandmin-heaps.
Inbothkinds,thevaluesinthenodessatisfyaheapproperty.
Fortheheap-sortalgorithm,weusemax-heaps.
Min-heaps are commonly used in priority queues.