Queues | Learning Data Structures with CompAndCode #4

Intro:

So in todays post, we’re looking at Queues, continuing the ‘Learning Data Structures’ series!!

I hope that this one provides a lot of value given that the majority of you will mostly likely be students. Understanding Data Structures can be quite tricky however they are integral to the theory of Computer Science and their concepts can be applied to a range of different aspects of CS.

Theory:

A queue is an abstract data structure (created by the programmer rather than predefined) that works on a FIFO basis.

They’re good for modelling real world situations.

Each queue has a front and rear pointer.

Circular queues are a more complex version of linear queues. They’re also more efficient however I will touch on them in a future blog post!!

Operations:

enQueue(item) — Adds Item.

deQueue() — Removes Item.

isFull() — Checks whether or not the queue is full.

isEmpty()

Implementation:

Check out this implementation here!

https://www.geeksforgeeks.org/queue-in-python/

Final Things: As always, thank you for making it this far, please leave comments, they help me so much. Be sure to like and share also, lets try and get 100 views within a week, like we have done previously. Follow CompAndCode on all platforms! Thank You Nibble Byte!!! Hashtags: #computerscience #coding #programming #technology #python #programmer #computer #tech #developer #coder #java #javascript #code #codinglife #webdeveloper #softwareengineer #engineering #machinelearning #softwaredeveloper #html #programmers #software #artificialintelligence #computerengineering #linux #datascience #cybersecurity #programmingmemes #hacking #bhfyp #informationtechnology #programminglife #hacker #css #pythonprogramming #php #webdesign #ai #science #programmerlife #codingmemes #deeplearning #developers #programmerhumor #coderlife #codingisfun #computers #kalilinux #developerlife #development #ethicalhacking #softwareengineering #computerprogramming #windows #coders #codingbootcamp #security #geek #daysofcode #programmingisfun #compandcode

  • computerscience
  • code
  • coder
  • coding
  • codinglife
  • compandcode
  • computer
  • developer
  • html
  • java
  • javascript
  • machinelearning
  • programmer
  • programming
  • python
  • softwaredeveloper
  • softwareengineer
  • tech
  • technology
  • webdeveloper
  • code
  • coder
  • coding
  • codinglife
  • compandcode
  • computer
  • computerscience
  • developer
  • html
  • java
  • javascript
  • machinelearning
  • programmer
  • programming
  • python
  • softwaredeveloper
  • softwareengineer
  • tech
  • technology
  • webdeveloper

Computer Science Student | Digital Content Creator!!