top of page

Queues | Learning Data Structures with CompAndCode #4

Writer's picture: Vikram NayyarVikram Nayyar

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!




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!!!





  • 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



143 views1 comment

Recent Posts

See All

1 commentaire


Jamie
16 déc. 2020

Really loving this series as data structures is within my syllabus - looking forward to the next one!

J'aime
bottom of page