Friday 10, February 2012
Welcome Guest, Register | Login  
      Home    |    Tutorials    |    Free Ebooks    |    Free Scripts    |    Articles    |    Blog     |    Forum    |    About Us    |    Contact Us

Queues

A queue is a linear list of elements in which deletions can take place only at one end, called the front of the stack, and insertion can take place only at the other end, called the rear. The term FRONT and REAR are used in describing a linear list only when it is implanted as queue. Queues are also called First in First out (FIFO) Lists.

Add an Item Into Queue:

procedure
additem (item : items);
{add item to the queue q}
begin
    if rear=n then OverFlow
    else begin
         rear :=rear+1;
         q[rear]:=item;
    end;
end;{of additem }

Deletion from Queue:

procedure deleteitem (item : items);
{delete from the front of q and put into item}
begin
    if front = rear then UnderFlow
    else begin
         front := front+1
         item := q[front];
    end;
end; {of deleteitem }


Static and Dynamic Lists
A static data structure is a data structure created for an input data set which is not supposed to change within the scope of the problem. When a single element is to be added or deleted, the update of a static data structure incurs significant costs, often comparable with the construction of the data structure from scratch. In real applications, dynamic data structures are used, which allow for efficient updates when data elements are inserted or deleted.

 

 
     
   
Data Structure Theory Tutorial
 
  Data Structure
Data Structure
  Abstract Data Types
Abstract Data Types
  Stacks
Stacks
  Queues
Queues
  Linked Lists
Linked Lists
  Linear Search
Linear Search
  Sorting
Sorting
  Hashing
Hashing
  Trees
Trees
  Graphs
Graphs
 
 
 
Web Designing Tutorials
  HTML Tutorial
HTML Tutorial
  DHTML Tutorial
DHTML  Tutorial
  CSS Tutorial
CSS Tutorial
  XHTML Tutorial
XHTML Tutorial
 
Programming Languages Tutorials
  C Language Tutorial
C Language Tutorial
  C++ Tutorial
C++ Tutorial
  Java Language Tutorial
Java Language Tutorial
  Data Structure Theory Tutorial
Data Structure Theory Tutorial
 
Server Side Scripting Tutorials
  PHP Tutorial
PHP Tutorial
  SQL Tutorial
SQL Tutorial
  ASP Tutorial
ASP Tutorial
 
Client Side Scripting Tutorials
  JavaScript Tutorial
JavaScript Tutorial
  VBScript Tutorial
VBScript Tutorial
 
 
 
POPULAR E-BOOKS
 
Download Blueprints for a successful presentation  Ebook Blueprints for a successful presentation
   
Download Project Oberon - The Design of an Operating System and Compiler  Ebook Project Oberon - The Design of an Operating System and Compiler
   
Download EMarketing In A Box  New Updated 2008 Edition Ebook EMarketing In A Box New Updated 2008 Edition
   
Download How To Build A Niche Site Empire Ebook How To Build A Niche Site Empire
   
Download The Definitive Guide to symfony  Ebook The Definitive Guide to symfony
   
 
Studiesinn.com © 2012 All Rights Reserved.
Website Designed & Developed by TechXprtz