COURSE: DATA STRUCTURES & ALGORITHMS
SECTION 03 // QUEUES
C++ DATA STRUCTURES•SPRING
Section 3 — Data Structures

Queues & Circular Queues

Understand FIFO order, find the dead space a linear array wastes, and watch the modulo turn that same array into a ring.

WHAT WE'LL COVER18 SLIDES
  1. 01Cover
  2. 02Why a Queue?
  3. 03Stack vs. Queue
  4. 04The Blueprint
  5. 05Simple Queue
  6. 06The Limitation
  7. 07Circular Queue
  8. 08Wrap-Around Trace
  9. 09Queue via Linked List
  10. 10The Ring
  11. 11The Queue Family
  12. 12std::queue
  13. 13std::priority_queue
  14. 14Edge Cases
  15. 15Complexity Reference
  16. 16Complete Walkthrough
  17. 17Predict the Output
  18. 18Key Takeaways
C++ · Queue · Circular Queue · STL

Hagar Gamal

Faculty of Computers & Information