Computer Science, asked by rajeshthalapathy28, 1 month ago

What is the need for a circular queue? *​

Answers

Answered by Anonymous
1

✔✔In a linear queue, dequeue operation causes the starting elements of the array to be empty, and there is no way you can use that space, while in a circular queue, you can effectively use that space. Priority queue is used to delete the elements based on their priority.

Answered by Anonymous
1

Priority queue is used to delete the elements based on their priority. Higher priority elements will be deleted first whereas lower priority elements will be deleted next. Queue data structure always follows FIFO principle.

⭐❤️⭐

Similar questions