priority queue is not used for
Answers
Answered by
0
Google is the answer to the
Answered by
0
The priority queue is not used for undo operation in text editors
Undo operation is achieved using a stack.
Priority Queue :
- The priority queue is an Abstract Data Type (ADT) that operates similarly to a normal queue except each element has a certain priority.
- Priority queues only support comparable data, meaning that data inserted into the priority queue must be able to be ordered in some way either from least to greatest or greatest to least.
Application of priority queue :
- Used in Huffman codes for data compression
- Used to sort heap
- Used in the operating system for load balancing and interrupt handling
Similar questions