Q12
Which one of the following sequences when stored in an array at locations forms a max-heap?
Show answer without attempting
Answer: B
GATE CS · Tree Data Structures · 2 questions
2 Binary Heaps questions from GATE CS papers (2023), each with the official answer key. Part of Tree Data Structures. Answer any question right here and it is marked straight away, or practise them one at a time.
Answer: B
EXTRACT-MAX(A) extracts and deletes the maximum element from . The operation INSERT(A, key) inserts a new element key in . The properties of a max-heap are preserved at the end of each of these operations.Answer: B
0/20 correct0 marks