Question

1) Come up with an example of a software application in which the data elements must...

1) Come up with an example of a software application in which the data elements must be processed in 'last in, first out' order like a stack

or

in 'first in, first out' order like a queue.

Remember: we can think of these data structures as abstract in terms of how they store that comes in and leaves, and they could be implemented internally with arrays or linked lists, etc... The important thing here is the needs of the problem.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Any ticket booking system uses QUEUE as their data structure to process data. Because the persons who book first get the ticket first. So it is using the first-in, first-out structure.

The UNDO operation in any text-editor uses the STACK as its data structure. Because in this operation the last written item gets deleted first. So it is using last-in, first-out structure.

Add a comment
Know the answer?
Add Answer to:
1) Come up with an example of a software application in which the data elements must...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT