answersLogoWhite

0


Best Answer

Circular queues are very efficient and work well with low level codes. Ordinary queues are the standard type of queue but they do not maximize memory data well.

User Avatar

Wiki User

9y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are advantages and disadvantages of circular queue over ordinary queue?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Calculus

Difference between circular queue and De queue?

The queue is a linear data structure where operations of insertion and deletion are performed at separate ends also known as front and rear. Queue is a FIFO structure that is first in first out. A circular queue is similar to the normal queue with the difference that queue is circular queue ; that is pointer rear can point to beginning of the queue when it reaches at the end of the queue. Advantage of this type of queue is that empty location let due to deletion of elements using front pointer can again be filled using rear pointer. A double ended queue (or deque ) is a queue where insertion and deletion can be performed at both end that is front pointer can be used for insertion (apart from its usual operation i.e. deletion) and rear pointer can be used for deletion (apart from its usual operation i.e. insertion)


What difference between stack and queue?

A stack is a data structure in which last item inserted is taken out first . That's why they are known as LIFO (last in first out). Inserting an item in stack is termed as push and taking an item out from stack I s termed as pop. Some applications of stack are : Polish notation, reversing string, backtracking , quick sort algorithm etc. The queue is a linear data structure where operations od insertion and deletion are performed at separate ends also known as front and rear. Queue is a FIFO structure that is first in first out. Whenever a new item is added to queue, rear pointer is used. and the front pointer is used when an item is deleted from the queue.


What is queues and stacks?

A stack is a data structure in which last item inserted is taken out first . That's why they are known as LIFO (last in first out). Inserting an item in stack is termed as push and taking an item out from stack I s termed as pop. Some applications of stack are : Polish notation, reversing string, backtracking , quick sort algorithm etc. The queue is a linear data structure where operations od insertion and deletion are performed at separate ends also known as front and rear. Queue is a FIFO structure that is first in first out. Whenever a new item is added to queue, rear pointer is used. and the front pointer is used when an item is deleted from the queue.


What is difference between a scheduler and a dispatcher?

DISPATCHER?The dispatcher is the module that gives control of the CPU to the process selected by the short-time scheduler(selects from among the processes that are ready to execute).The function involves :Swithching contextSwitching to user modeJumping to the proper location in the user program to restart that program.SCHEDULER? Normally there are 3 types of schedulers are available in operating systems.1. Long term scheduler2. Mid term scheduler3. Short term schedulerThe short term scheduler is also called as the dispatcher which selects the process from the waiting queue and allocates the CPU to that process.Whereas the Long term scheduler (Admission scheduler) decides which process should be placed in the main memory and updates the waiting queue. This long scheduler is important in the large bound systems like super computers and may not be used frequently as the short term scheduler.The mis term scheduler available in all systems which is responsible for the swapping in and out operations which means loading the process into, main memory from secondary memory (swap in) and take out the process from main memory and store it into the secondary memory (swap out).


Difference between loss systems and delay system?

1) In a loss system overload traffic is rejected without being serviced. In a delay system overload traffic is held in queue until the facilities become available to service it.2)conventional circuit switching operates as a loss system since excess traffic is blocked and not serviced without a retry on the part of the user. Store-and-forward message or packet switching obviously posses the basic characteristics of a delay system3)The basic measure of performance for a loss system is the probability of rejection(blocking probability). A delay system on the other hand is measured in terms of service delays.

Related questions

How ordinary queue is solved in circular queue?

An ordinary queue requires constant time access to the first and last elements, because all insertions occur at the back of the queue and all extractions at the front. Thus we require two pointers. However, with a circular queue, the next element after the last element is always the first element, thus we gain constant-time access to both the front and back of the queue through a single pointer to the back of the queue.


Circular queue program?

For the Complete Implementation of Circular Queue Check out www.codeuniverse.tk


Which queue most efficient queue using array?

circular queue


Difference between circular queue and linear queue?

In circular queue the memory of the deleted process can be used by some other new process..


What is circular queue operations circular queue?

A circular queue is similar to the normal queue with the difference that queue is circular queue ; that is pointer rear can point to beginning of the queue when it reaches at the end of the queue. Advantage of this type of queue is that empty location let due to deletion of elements using front pointer can again be filled using rear pointer. There are 2 conditions for queue full if queue is implemented using arrays. First condition is Front = 1 and Rear = N Second condition is Front = Rear + 1


What is the difference between linear and circular queue?

What is the difference between linear and circular queue? In: http://wiki.answers.com/Q/FAQ/2545-37 [Edit categories]The Queue by Default is Linear, it would be termed as Circular if the Last Element of the Queue pointsto the first element of the List


Define is circular queue with example?

A circular queue uses the same conventions as that of linear queue. Using Front will always point one position counterclockwise from the first element in the queue.


How compiler differentiate between linear queue and circular queue?

It doesn't.


What is the difference between a priority queue and a circular queue?

A circular queue is similar to the normal queue with the difference that queue is circular queue ; that is pointer rear can point to beginning of the queue when it reaches at the end of the queue. A priority queue is a queue in which each element is inserted or deleted on the basis of their priority. A higher priority element is added first before any lower priority element. If in case priority of two element is same then they are added to the queue on FCFS basis (first come first serve).


What is the need of circular queue in data structures?

Circular queue is a linear data structure that follows the First In First Out principle. A re-buffering problem often occurs for each dequeue operation in a standard queue data structure. This is solved by using a circular queue which joins the front and rear ends of a queue.


List out atleast 5 rela life instances where queue and circular queue operations are being used?

1. List out atleast 5 rela life instances where queue and circular queue operations are being used.


What is circular queues Explain in detail along with example?

circular queue