176 views
0 votes
0 votes
What would be the time complexity for insertion and deletion in the heap implementation of priority queue

1 Answer

0 votes
0 votes
In it , getHighestPriority() can be implemented in O(1) time, insert() can be implemented in O(Logn) time and deleteHighestPriority() can also be implemented in O(Logn) time.

No related questions found