DSA

DSA
  Copy


More Options: Make a Folding Card




Storyboard Description

This storyboard does not have a description.

Storyboard Text

  • A constructor creates the circular array
  • A circular queue is a non-naive queue based array system, it adds data clockwise around the circular queue
  • In this example, we will be using numbers to represent the array's slots and letters to represent the data that will be stored 
  • 4
  • 5
  • 3
  • a
  • b
  • 2
  • 0
  • 1
  • We will use this queue as an example for the rest of the strips, we will also call this Queue q
  • It's current attributes are as follows Front = 0 Back = 2 Max size = 6
  • 4
  • 3
  • 5
  • a
  • c
  • b
  • 0
  • 2
  • 1
  • New value will be inserted here, after the back
  • The En-queue operation adds a value to the back of the queue 
  • q.Enqueue("d");
  • 4
  • 5
  • 3
  • c
  • a
  • b
  • 2
  • 0
  • 1
  • Value "d" has been inserted into the queue
  • Current attributes:  Front = 0 Back = 3 Max size = 6 Count = 4
  • 4
  • 3
  • 5
  • d
  • c
  • a
  • b
  • 2
  • 0
  • 1
  • Current attributes:  Front = 0 Back = 3 Max size = 6 Count = 5
  • We will run another enqueue operation
  • q.Enqueue("e");
  • 4
  • 5
  • e
  • 3
  • d
  • c
  • a
  • 0
  • b
  • 2
  • 1
More Storyboards By infusion1231
Explore Our Articles and Examples

Try Our Other Websites!

Photos for Class   •   Quick Rubric   •   abcBABYart   •   Storyboard That's TPT Store