Comet 3

  Copy


More Options: Make a Folding Card




Storyboard Description

This storyboard does not have a description.

Storyboard Text

  • Welcome, Sergeant. This is our dev center where the request system originates from.
  • Certainly. Let me transfer my consciousness into the computer. 
  • Please take me through the operations.
  • At the state-of-the-art development center......
  • OPERATIONS OF CIRCULAR QUEUES: FRONT,REAR,ISFULL AND ISEMPTY
  • There is also a rear function to obtain the last item in the queue. A isFull() function to check if the queue is full and isEmpty() function to check if the queue is empty.
  • There is a getFront(item) function which can be used to retrieve the front request in the queue as well as ensure that the queue is not empty. In order to check the queue, the code should return true when count equals zero as it represents the number of items in the queue.
  • OPERATIONS OF CIRCULAR QUEUES: enQueue (value)
  • If there was a need to insert a new element at the rear, this would be the function to use. To add a new value, we would need to set the backnode to point to the new node while the newnode points to the null If the queue was initially empty, set both the front and backnode to the newnode
  • OPERATIONS OF CIRCULAR QUEUES: deQueue()
  • This function is used to delete an element from the circular queue.  In a circular queue, the element is always deleted from front position.  If it is only for one node, in order to dequeue it, we would need to set the frontnode and backnode to point to null, meaning the queue is empty
  • OPERATIONS OF CIRCULAR QUEUES:  deQueue() Continued
  • If not, we would need to set a temp pointer to point to front and make frontnode pointer point to the next node in stack Upon doing so, we need to make the removed node pointer point to null and deallocate memory of the removed node
  • OPERATIONS OF CIRCULAR QUEUES: display()
  • The function will check if the queue is empty by using front == -1. If it is empty, a message should display and then function will terminate. If it is not, then an integer variable will be set to equate to the front and a condition 'front<= rear' will be used. If the condition is met, then all values up until ‘variable <= rear’ is not met, will be displayed. However if it is false, then all values will be displayed until 'variable <= SIZE - 1' is not met. After the variable value is set back to 0, 'Queue[variable]' value should be displayed andvarible value will increase value by one until 'variable <= rear' becomes FALSE.
More Storyboards By bts2016
Explore Our Articles and Examples

Try Our Other Websites!

Photos for Class – Search for School-Safe, Creative Commons Photos! (It Even Cites for You!)
Quick Rubric – Easily Make and Share Great Looking Rubrics!