Please enable JavaScript.
Coggle requires JavaScript to display documents.
CHAPTER 4: QUEUE, CODE SEGMENT Picture1, yuna(slide3), yuna(slide22),…
CHAPTER 4: QUEUE
-
HAZIQ (Slide 4)
FIFO CONCEPT
Means (First-In First-Out)
In data structure, it means the
first element enqueued will be the first to be removed.
Example
Like a customer in a store to which it is processed in the order in which it arrives. A first-come, first-served line is the most common type of queue that we join in our everyday lives and is generally accepted as the fairest way to operate a queue.
4.1 Understand Queue
QUEUE EXAMPLE IN REAL LIFE
-Ticket counter line where people who come first will get his ticket first.
-Bank line where people who come first will done his transaction first.
QUEUE EXAMPLE IN PROGRAMMING
-1) When a resource is shared among multiple consumers. Examples include CPU scheduling,
2) When data is transferred asynchronously (data not necessarily received at same rate as sent) between two processes. Examples, file IO.
-
-
-
elton(slide2)
Definition-is a particular kind of collection in which the entities in the collection are kept in order and the operations on the collection are the Enqueueition of entities to the rear terminal position and removal of entities from the front terminal position
CODE SEGMENT
EXPLANATION
-
-
-
-
-
-