ExamVeda
Login
Home
11
What is the main advantage of using a binary heap for implementing a priority queue?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
12
In a min-heap, what happens when you decrease the value of a node?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
13
Which operation is used to extract the minimum element from a min-heap?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
14
What is the time complexity of extracting the maximum element from a max-heap?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
15
How are heaps commonly used in algorithms?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
16
In a binary heap, which of the following operations is O(log n) in time complexity?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
17
What is the main difference between a binary heap and a binary search tree?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
18
How do you restore the heap property after extracting the maximum element from a max-heap?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
19
Which property does not apply to a min-heap?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
20
What is the time complexity of decreasing a key value in a min-heap?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board