100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Class notes

(Queues)

Rating
-
Sold
-
Pages
34
Uploaded on
29-01-2023
Written in
2022/2023

The first item in the queue is the first to be served. • A queue is a First-In-First-Out (FIFO) structure • Also considered as a First-Come-First-Served (FCFS) structure • Is a special kind of list in which the basic insert and delete operations are restricted to the ends of the list. • Items are removed from a queue at one end, called front (head) of the queue, and elements are added only at the other end called back (rear or tail).

Show more Read less
Institution
Course











Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Course

Document information

Uploaded on
January 29, 2023
Number of pages
34
Written in
2022/2023
Type
Class notes
Professor(s)
James a. okello
Contains
All classes

Subjects

Content preview

Data Structure and
Algorithms
(Queues)
UKZN
ENEL2DSH2
2016

,Broad classification
Broadly classified as linear or non-linear
• Linear DS
§ Arrays (Covered in lecture_4)
§ Linked list (Covered in lecture_5)
§ Stacks (Covered in lecture_6-1)
§ Queues
§ Hash tables
• Non-linear DS
§ Trees
§ Graphs

,Introduction
Queue is a “waiting list” such as :
1. A line of persons waiting to check out at the supermarke
2. A line of vehicles at a toll booth.
3. A queue of planes waiting to land at an airport.
4. A queue of jobs in a computer system waiting for output
device such as printer.

, Introduction
Cont.
• The first item in the queue is the first to be served.
• A queue is a First-In-First-Out (FIFO) structure
• Also considered as a First-Come-First-Served (FCFS) structur
• Is a special kind of list in which the basic insert and delete operatio
are restricted to the ends of the list.
• Items are removed from a queue at one end, called front (head) of
queue, and elements are added only at the other end called back (re
or tail).
$9.93
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
mthimkhuluramasimong

Get to know the seller

Seller avatar
mthimkhuluramasimong University of KwaZulu-Natal
Follow You need to be logged in order to follow users or courses
Sold
1
Member since
3 year
Number of followers
1
Documents
33
Last sold
3 year ago

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions