Computer Science
Suggested situations where you can use these data structures:
(i) linear lists
(ii) stacks
(iii) queues
Linear Lists
1 Like
Answer
(i) Linear lists — Linear lists are utilized when storing and managing collections of data elements in a sequential manner is necessary. For example, managing a list of student records in a university database.
(ii) Stacks — Stacks are used when data needs to be managed based on the Last In, First Out (LIFO) principle. For example, function call management in programming languages employs a stack structure to store and manage function calls.
(iii) Queues — Queues are used when data needs to be managed based on the First In, First Out (FIFO) principle. For example, a print spooling system, where print jobs are queued in the order they were received.
Answered By
2 Likes