top of page

Queue exercises

  • Karla G
  • 28 mar 2015
  • 1 Min. de lectura

Questions

1.- Mention two elements in life where queues are used.

2.- How is queue organized in inputs and outputs?

FIFO, or FILO

(First in, First Out or First in, Last out)

3.- If I have a array: QUEUE[QUEUE.SIZE], when QUEUE.SIZE=6. The initial state of the array is:

[0] [1] [2] [3] [4] [5]

3 34 5 / / / when "/ "= empty

And then, this codes are run:

push(4);

push(2);

pop();

pop();

pop();

pop();

push(23);

pop();

pop();

What is the final state of the array?

Answers:

1.- Video reproduction, Music playlist, waiting in a line, downloads, etc.

2.- FIFO, First in, first out.

3.-

[0] [1] [2] [3] [4] [5]

/ / / / / / when "/ "= empty

 
 
 

Comments


 THE ARTIFACT MANIFAST: 

 

This is a great space to write long text about your company and your services. You can use this space to go into a little more detail about your company. Talk about your team and what services you provide. Tell your visitors the story of how you came up with the idea for your business and what makes you different from your competitors. Make your company stand out and show your visitors who you are. Tip: Add your own image by double clicking the image and clicking Change Image.

 UPCOMING EVENTS: 

 

10/31/23:  Scandinavian Art Show

 

11/6/23:  Video Art Around The World

 

11/29/23:  Lecture: History of Art

 

12/1/23:  Installations 2023 Indie Film Festival

 FOLLOW THE ARTIFACT: 
  • Facebook B&W
  • Twitter B&W
  • Instagram B&W
 RECENT POSTS: 
 SEARCH BY TAGS: 

© 2023 by Karla Lugo. Proudly created with Wix.com

bottom of page