ECE242 L5: Queues September 18, 2009
ECE 242 Data Structures
Lecture 5
Queues
ECE242 L5: Queues September 18, 2009
Overview °Problem: How can I build a “first-in, first-out” structure
- Think about standing in line at the store
- “Queue” can grow quite long
- Only one person enters at a time
- Only one person exits at a time
°Queues: frequent usage in programs
- Who got there first
- Everyone gets treated the same