ExamVeda
Login
Home
This question belongs to Data Structure Heaps
Heaps
?

What is wrong with the following code of insertion in fibonacci heap.
Choose the correct option
FIB-INSERT(H, x)
degree[x]= 0
p[x]=  NIL
child[x] =NIL
left[x] =x
right[x] =x
mark[x] =FALSE
concatenate the root list containing x with root list H 
if min[H] = NIL or key[x] > key[min[H]]
then min[H]= x
n[H]= n[H] + 1

Answer & Solution
Correct Answer: Option C
Let's discuss the solution. Join the discussion
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.