Show the worked solution(a) Huffman coding with a min-heap does \(n-1\) extract-and-merge steps of \(O(\lg n)\): \(O(n\lg n)\), so (a)-(iii).(b) Optimal polygon triangulation is a dynamic program over a \(\Theta(n^2)\) table of sub-polygons (same structure as matrix-chain order), so (b)-(ii).(c) Activity selection on activities already sorted by finish time is a single greedy scan: \(\Theta(n)\), so (c)-(iv).(d) Quicksort is \(O(n^2)\) in the worst case, so (d)-(i).Only option C has (a)-(iii) together with (c)-(iv); option D would give activity selection \(\Theta(n^2)\), which is wrong.Answer: C
GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com