[Home]  [Edit this page]  [Recent Changes]  [Special Pages]  [Help
Queue

(Computer science) Queue

A FIFO data structure where data is put on at one end and taken off the other. It's just like a queue in real life; you join the back and leave at the front.

Simulated using an array and two pointers (one for each end) or a linked list. Linked lists work better for larger queues or queues that will run for a long time because an array will run out of elements as items are enqueued and dequeued over time. Another solution to this is circular queues, where the queue wraps round the array.

last edited (November 2, 2006) by bilderbikkel, Number of views: 4695, Current Rev: 5 (Diff)

[Edit this page]  [Page history]  [What links here]  [Discuss this topic]  [Printer Friendly]  

Members

Username:

Password:


Register
Forgot Password?




Programmers Heaven - for .NET, Java, C/C++ and WEB Developers!
© 1996-2008 Community Networks Ltd. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited. Violators of this policy may be subject to legal action. Please read Terms Of Use and Privacy Statement for more information. Development by Tore Nestenius at .NET Consultant - Synchron Data.