Total number of possiblr positions in a min heap of n elements where the third largest element can be stored is
Answers
Answered by
9
Time to find the smallest element on a min-heap- one retrieve operation - Θ(1)Θ(1)
Time to find the second smallest element on a min-heap- requires 22−1=322−1=3 check operations to find the second smallest element out of 33 elements - Θ(1)
Similar questions
Math,
6 months ago
Science,
6 months ago
Math,
1 year ago
Chemistry,
1 year ago
Business Studies,
1 year ago
Business Studies,
1 year ago