What is the amortized cost per operation of a skew heap?

Category: QuestionsWhat is the amortized cost per operation of a skew heap?
Editor">Editor Staff asked 5 months ago

What is the amortized cost per operation of a skew heap?
 
(a) O(N)
 
(b) O(N log N)
 
(c) O(N^2)
 
(d) O(log N)
 
My question is from Heap in division Heap of Data Structures & Algorithms I
 
The question was asked in quiz.

1 Answers
Editor">Editor Staff answered 5 months ago

The correct choice is (d) O(log N)
 
For explanation: The amortized cost per operation of a skew heap is O(log N) since the worst case analysis of skew heap is O(N) and splay tree is O(M log N).


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