Priority Queue (PQ) Data Structure and Heap

1. Introduction

Operation T.C.
polling O(log N)
peeking O(1)
Adding O(log N)
Naive Removing O(n)
Advanced Removing with
help from a Hash-table.
O(log(n))
Naive Contains O(n)
Contains check with
help of Hash-table.
O(1)

------ End ------