0 0 votes Consider the following statements about heap sort algorithm:The MAX-HEAPIFY procedure which runs in $\mathrm{O} \lg (n)$ time, is the key to maintaining the max heap propertyThe BUILD-MAX-HEAP procedure, which runs in $\mathrm{O} \lg (n)$ time, produces max-heap from an unordered input arrayThe MAX-HEAP-INSERT, which runs in $\text{O}$ $(\lg n)$ time, implements the insertion operationThe HEAP-INCREASE-KEY procedure runs in $\text{O}$ $(\mathrm{n} \lg n)$ time , to set the key of new node of its correct valueChoose the correct answer from the options given below:$\text{I, II}$ only$\text{I, III}$ only$\text{II, IV}$ only$\text{I, II, III, IV}$ Algorithms ugcnetcse-june2023-paper2 binary-heap algorithms heap-sort sorting array time-complexity + – admin 1.0k views answer comment Share Follow Print 0 reply Please log in or register to add a comment.
0 0 votes Ans : B. A and C are correct. This is taken as it is from CLRS book (Heap chapter). BUILD-MAX-HEAP runs in O(n) time. HEAP-INCREASE-KEY runs in runs in O(lg n) simi2426 answered Jul 31, 2023 simi2426 comment Share Follow 0 reply Please log in or register to add a comment.