Lecture 09: Implementing Queue in Patients Management Case Study
Автор: Othman Shbeir
Загружено: 2026-01-11
Просмотров: 20
In this Data Structure and Algorithms – Lab lecture 09, we introduce the Queue data structure and demonstrate how it can be implemented using a LinkedList, through a practical patients management case study.
This lecture focuses on understanding the First In, First Out (FIFO) principle, which is essential for modeling real-world systems such as hospitals, service counters, and scheduling systems. Students will learn how queue operations map naturally to linked list operations, resulting in an efficient and clean implementation.
The session covers the following key topics:
1- Understanding the Queue data structure and the FIFO principle.
2- Defining a Queue interface in Java.
3- Implementing a Queue using a custom LinkedList.
4- Mapping queue operations:
enqueue() → add element to the end of the linked list.
dequeue() → remove element from the front.
first() → access the front element.
5- Iterating over a queue using the enhanced for loop.
6- Handling empty queue cases safely.
7- Applying Queue concepts in real-world scenarios.
These concepts are essential for building real-world Java programs, such as:
Hospital and patient management systems.
Customer service and ticketing systems.
Task scheduling and process management.
Networking and request-handling systems.
💻 Full code from this lecture:
https://github.com/othman-shbeir/CSCI...
📌 This lecture is designed specifically for Data Structure and Algorithms – Lab students, with clear explanations, real-world analogies, and beginner-friendly implementations to strengthen understanding of Queue operations.
👉 Don’t forget to like, subscribe, and share if this lecture helped you understand how the queue works in Java using LinkedList!
#Java #Queue #LinkedList #DataStructures #Programming1 #ProgrammingLab #ComputerScience #CSLab #LearnJava #JavaForBeginners #FIFO #UniversityProgramming #CodingForStudents #IntroToProgramming #CaseStudy
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: