answersLogoWhite

0


Best Answer

Circular queue have less memory consuption as compared to linear queue because while doing insertion after deletion operation it allocate an extra space the first remaining vacant but in circular queue the first is used as it comes immediate after the last.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

9y ago

With a standard linked list, you only have constant time access to the head of the queue (it's the only link you have to the list) so all insertions and extractions must be performed at the head in order to maintain efficiency. Thus linked lists are only suitable for stack structures (last in, first out). If you wish to use a linked list as a queue (first in, first out), you must maintain a separate link to the tail to perform insertions at the tail in constant time. You cannot extract from the tail in constant time because there's no direct link back to the penultimate node which will naturally become the new tail.

With a circular linked list, however, you do not need two separate links to the head and tail because the tail points to the head. Thus you get constant time access to both the head and the tail through a single link to the tail alone. You still cannot extract from the tail in constant time, but it's a more efficient method of implementing a queue.

This answer is:
User Avatar

User Avatar

Wiki User

9y ago

A standard queue suffers from a rebuffering problem during dequeue operations. By making the queue circular and linking the head to the tail, this alleviates the problem and allows insertion and deletion in constant time.

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

Circular queue have less memory consumption as compared to linear queue because while doing insertion after deletion operation it allocate an extra space the first remaining vacant but in circular queue the first is used as it comes immediate after the last.

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

In a singly-linked list, you need to maintain two pointers in order to locate the head and tail in constant time. With a circular list you need only maintain a pointer to the tail since the head node is always the tail's next node.

Similarly, with doubly-linked lists, you need only maintain a single pointer to the head or tail in a circular implementation.

This answer is:
User Avatar

User Avatar

Wiki User

9y ago

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. The advantage of circular queue over linear queue is that empty location left due to deletion of elements using front pointer can again be filled using rear pointer.

This answer is:
User Avatar

User Avatar

Anonymous

Lvl 1
3y ago

circular queue is a special type of queue in which last position and first position are assumed as adjacent position. It means in circular queue first position after last position. If front=0 and rear=N-1 or front=rear+1, then circular queue is full and we can't perform insertion of new element and overflow condition will occur. If rear=N-1 and front is not equal to 0, then we set rear=0 for insertion of new element. If first element is inserted in queue then front=rear=-1 will be set on front=rear=0. Otherwise, rear will be increased by 1.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the advantage of circular queue over simple queue?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What are advantages and disadvantages of circular queue over ordinary queue?

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.


How is the mechanical advantage of a simple machine calculated?

mechanical advantage= output force over input force times 100


What is an advantage of a simple stain over a wet mount?

You can see clearer images in the simple stain technique rather than the wet mount technique...


What is a ques?

Que is the word "that" or "what" in Spanish, depending on if it has an accent mark over the E or not. Did you mean a queue? A queue is a group of items or a line of people.


What is ques?

Que is the word "that" or "what" in Spanish, depending on if it has an accent mark over the E or not. Did you mean a queue? A queue is a group of items or a line of people.


Advantage of reverse osmosis over filtration?

R/O filters to a much greater degree than simple filtration.


What is the advantage over the simple stain?

Gram staining highlights different bacteria types through the use of special dyes. It aids in the diagnosis of a specific organism and tells the difference between gram negative and gram positive bacteria. Simple staining is unable to highlight the exact organism.


In what way is a tubular gut that is one with both mouth and an anus an advantage over a simple saclike gut?

Go snog your crush!


What advantages of QBE compared to SQL?

QBE is an advantage over SQL as it is a visual technique allowing non-experts to do searches, as it is simple to understand.


What is a good sentence with the word queue in it?

The queue to get into the Natural History Museum usually isn't too long, unless it's a Saturday or Sunday afternoon.A couple of bouncers came out and told everyone to get out of the street and form a queue on the sidewalk.The queue at the post office was so long, I was in there for over an hour.You're supposed to stand directly in front of the ATM screen, so the people in the queue behind you can't see what PIN you type in.


What was one advantage matchlock firearms had over the crossbow in the 14th century?

In the early part of the fourteenth century one advantage of the early firearms were there cost. A simple matchlock cost far less than a crossbow.


Why do they use flat plug points?

That isn't necessarily the case. European (mainland) plugs, for example, use pins of circular cross-section. There's no particular advantage of one type over another.