ExamVeda
Login
Home
61
Min heap can be used to implement selection sort.
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
62
What would be the result if the left subtree of the root has a null path length of 1 and the right subtree has a null path length of 2?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
63
What will be the order of new heap created after union of heap H1 and H2 when created by the following code.Initially both are of the order n.
FIB_UNION(H1,H2)
{
	H =MAKE_HEAP()
	min[H]= min[H1]
	concatenate the root list of H2 with the root list of H
	if (min[H1] = NIL) or (min[H2]!= NIL and min[H2] < min[H1])
	then min[H] = min[H2]
	n[H]=  n[H1] + n[H2]
	free the objects H1 and H2
	return H
}
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
64
What is the complexity of adding an element to the heap.
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
65
Is decrease priority operation performed more quickly in a ternary heap with respect to the binary heap.
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
66
Do ternary heap have better memory cache behavior than binary heap.
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
67
d-heap is similar to that of a?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
68
What is the fundamental operation on leftist heap?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
69
What is the smallest element of the given minimum ternary heap?
Heaps mcq question image
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
70
State the complexity of algorithm given below.
int function(vector<int> arr)
int len=arr.length();
if(len==0)
return;
temp=arr[len-1];
arr.pop_back();
return temp;
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board