982 views
0 0 votes
Is priority queue work efficiently with sorted array than unsorted array and heap for insertion and deletion operation? Then why do we apply priority queue in heap specially

Please log in or register to answer this question.

Position:
Show:

Related questions

7 7 votes
1 1 answer
452
452 views
GO Classes asked Jul 27
452 views
Which of the following statements are true?$\text{S1.}$ Stack operations $\texttt{push}$, $\texttt{pop}$, and $\texttt{isEmpty}$ can be worst-case $O(1)$ for a linked-lis...
2 2 votes
1 1 answer
1.9k
1.9k views
Parshu gate asked Nov 11, 2017
1,850 views
Suppose Stack operations are implemented using Queue Operation. Push(x) and Pop() are stack operations whereas enqueue(x) and dequeue are Queue operations.Consider the co...
0 0 votes
1 1 answer
1.7k
1.7k views
pallaviamu asked Jun 17, 2018
1,690 views
On other sources, it is given that we need to assign high priorities to newly inserted element in case of stack otherwise low priority to newly inserted element in case o...
1 1 vote
1 1 answer
2.2k
2.2k views
tripathiambuj asked Jun 22, 2016
2,196 views
How many minimum queues are required to implement a priority queue?