Back to Browse

Queues in Python | Queue Creation, Operations & Applications | 1st Year Computer | Chapter 4 | Lec 3

165 views
Nov 3, 2025
15:24

Social Media Links: ______/❤ All Students are requested to Follow Me on Social Media!! ❤\________  Instagram:➜ https://www.instagram.com/digitaleduc...  Twitter:➜ https://twitter.com/shahbaz_ali101  Facebook Page:➜ https://www.facebook.com/digitalEduca...  Whatsapp:➜ https://chat.whatsapp.com/GqLGyGuZyNp...  Youtube:➜ https://bit.ly/32hA7C4?sub_confirmati... 4.1.3 Queues A queue is like a line in front of a bank or a ticket counter. The first person to get in line is the first person to be served. In a computer, a queue works the same way. It keeps track of things so that the first item added is the first one to be taken out. Just like in a bank line, you add things to the back and remove them from the front, following the FIFO (First-In, First-Out) principle. 4.1.3.1 Queue Operations Queues support two primary operations: • Enqueue (Add an Item): This is like adding a person to the end of the line. In queue, you add items to the back. • Dequeue (Remove an Item): This is like serving the person at the front of the line. In a queue, you take items out from the front. Additional operations might include checking if the queue is empty, retrieving the element at the front without removing it, and determining the size of the queue. #DigitalEducation #DigitalEducationLatestNews #DigitalEducationShahbazAli #11thComputerScience2025 #ComputerScience2025 #FScComputerScience #1stYearComputerScience #ComputerScienceLectures #CSPakistan #CSForBeginners #FScPart1 #CSTutorials #DigitalEducation #Python #Queues #PythonProgramming #ComputerScience #Class11 #DigitalEducation #PythonTutorial #DataStructures #CodingForBeginners #PythonBasics Computer Science 11th class Lecturer of Computer Science By Sir Shahbaz Ali For any query or private tutoring contact (0309-0334424) [email protected]

Download

1 formats

Video Formats

360pmp421.9 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Queues in Python | Queue Creation, Operations & Applications | 1st Year Computer | Chapter 4 | Lec 3 | NatokHD