Which operation cannot be directly performed in a d-heap?

Category: QuestionsWhich operation cannot be directly performed in a d-heap?
Editor">Editor Staff asked 5 months ago

Which operation cannot be directly performed in a d-heap?
 
(a) insert
 
(b) delete
 
(c) find
 
(d) create
 
My question is based upon Heap topic in portion Heap of Data Structures & Algorithms I
 
I had been asked this question in an interview for internship.

1 Answers
Editor">Editor Staff answered 5 months ago

The correct answer is (c) find
 
Explanation: Find operation in a d-heap cannot be performed as in other heaps. This is the main weakness of d-heap.


Notice: Trying to get property 'ID' of non-object in /home/fvckxqmi/public_html/wp-content/themes/blocksy/inc/single/single-helpers.php on line 17

Notice: Trying to get property 'ID' of non-object in /home/fvckxqmi/public_html/wp-content/themes/blocksy/inc/single/single-helpers.php on line 17

Notice: Trying to get property 'ID' of non-object in /home/fvckxqmi/public_html/wp-content/themes/blocksy/inc/single/single-helpers.php on line 17

Notice: Trying to get property 'ID' of non-object in /home/fvckxqmi/public_html/wp-content/themes/blocksy/inc/single/single-helpers.php on line 17
Articles: 40702