Join Barron Stone for an in-depth discussion in this video Queues, part of Programming Foundations: Real-World Examples.
- Queues and stacks are two data structures…which enable you to store and retrieve objects…based on the order that they're put into the queue or stack.…Queues operate on a principle called…first in, first out, or FIFO.…The first item to be stored in a queue…will be the first item that's removed.…That means when you retrieve an item…from a queue, you'll always get the item…that's been in queue the longest.…A stack operates on a related principle called LIFO,…which stands for last in, first out.…That means the item which was most recently…placed onto the stack will be the…next one that's removed.…
Queues and stacks are useful in different situations.…Hey, do you mind helping me put away some groceries?…- Sure, no problem.…- Cool, I'll make trips out to the car…and bring them in the house,…and if you can stay here and put them away,…that'll work great.…- Sounds good.…- These grocery bags are objects…that I'm placing into a queue.…I'll place the first bag closest to Olivia.…The next bag goes after that one,…and so on down the line.…
- Reusing functions
- Local vs. global variables
- Creating and naming custom objects
- Class inheritance
- Modules and packages
- Multidimensional lists and tuples
- Queues and stacks
- Creating and combining sets
- Storing data in dictionaries
- If/else and switch statements
- For vs. while loops
- Error handling
- Polling and event-driven programming
Skill Level Beginner
Programming Foundations: Design Patternswith Elisabeth Robson2h 19m Intermediate
3. Class Inheritance
4. Modules and Packages
5. Lists and Tuples
6. Queues and Stacks
9. Conditional Execution
11. Error Handling
12. Polling and Event-Driven Programming
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.