0 votes
in DBMS by

Compare different implementations of priority queue

1 Answer

0 votes
by

The following table contains an asymptotic analysis of different implementations of a priority queue:

Operationspeekinsertdelete
Linked ListO(1)O(n)O(1)
Binary HeapO(1)O(log n)O(log n)
Binary Search TreeO(1)O(log n)O(log n)

Related questions

0 votes
asked Aug 10, 2023 in DBMS by DavidAnderson
0 votes
0 votes
asked Aug 10, 2023 in DBMS by DavidAnderson
...