what is the technique that is used to perform work in FIFO in data structure
Answers
Answered by
44
Answer:
FIFO is an abbreviation for first in, first out. It is a method for handling data structures where the first element is processed first and the newest element is processed last.
- There is a ticket counter where people come, take tickets and go.
- People enter a line (queue) to get to the Ticket Counter in an organized manner.
- The person to enter the queue first, will get the ticket first and leave the queue.
- The person entering the queue next will get the ticket after the person in front of him
- In this way, the person entering the queue last will the tickets last
Therefore, the First person to enter the queue gets the ticket first and the Last person to enter the queue gets the ticket last.
This is known as First-In-First-Out approach or FIFO.
Similar questions
English,
2 months ago
English,
2 months ago
Social Sciences,
4 months ago
Science,
4 months ago
Science,
10 months ago
Accountancy,
10 months ago