ExamVeda
Login
Home
21
In a binary heap, what is the typical time complexity of deleting an arbitrary element?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
22
What is the primary use of heaps in graph algorithms?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
23
How is the parent node index computed in a zero-based indexed binary heap array?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
24
What happens if you increase the value of a node in a max-heap?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
25
Which of the following operations is not directly supported by a binary heap?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
26
In a binary heap represented as an array, what is the index of the left child of the node at index i?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
27
What is the space complexity of a binary heap when stored in an array?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
28
Which operation involves moving a node to maintain the heap property after insertion in a binary heap?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
29
In a max-heap, what is the time complexity to find the second largest element?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
30
What kind of binary heap is used to efficiently support priority queues with the smallest element at the root?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board