1.

Out of the following given options, which is the fastest algorithm?(a) fibonacci heap(b) pairing heap(c) d-ary heap(d) binary heapMy enquiry is from Heap in section Heap of Data Structures & Algorithms IThis question was posed to me in a job interview.

Answer»

Correct option is (a) fibonacci heap

The best I can explain: ALTHOUGH pairing heap is an efficient algorithm, it is worse than the Fibonacci heap. Also, pairing heap is FASTER than d-ary heap and BINARY heap.



Discussion

No Comment Found

Related InterviewSolutions