10.09.2013 Views

1. Advanced Data Structure using C++

1. Advanced Data Structure using C++

1. Advanced Data Structure using C++

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

LECTURE NOTES OF ADVANCED DATA STRUCTURE (MT-CSE 110)<br />

QUEUES<br />

Queues, like stacks, also used in the computer solution of many problems.<br />

Perhaps the most common occurrence of a queue in computer applications is<br />

for the scheduling jobs in batch processing.<br />

When we talk of queues we talk about two distinct ends; the front and rear.<br />

Additions to the queue take place at the rear. Deletions are made from the front.<br />

So, if a job is submitted for execution, it joins at the rear of the job queue. The job<br />

at the front of the queue is the next one to be executed(deleted).<br />

First In First Out(FIFO) or First Come First Serve(FCFS) is the logical operation of the<br />

queue.<br />

Simple queue with the capacity n<br />

DEFINATION OF QUEUES<br />

QUEUES:‐<br />

A queues is a logically “FIRST IN FIRST OUT”(FIFO) type of data<br />

structure.It is a linear list in which deletion are performed from the<br />

beinging i.e. front list and insertion are performed at the end is known<br />

as rear of the list. The information in such type of list can be processed<br />

Prepared By :­<br />

Er. Harvinder Singh<br />

Assist Prof., CSE, H.C.T.M (Kaithal) Page ‐ 138 ‐

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!