Topic outline
-
This unit will introduce you to two basic Data Structures, Stacks and Queues, and identify the operations that must be provided with each Stack and Queue implementation. Students will also learn how arrays and circular arrays can be used to implement a Stack and a Queue and discuss the advantages and disadvantages of their use.
Completing this unit should take approximately 3 hours.
-
-
Read this short section about lists. Lists of things are common in everyday life. Organizing data that way in a computer's memory is one way we can get software to mimic a person's approach to task performance. When looking at stacks and queues, we start with lists because lists are what stacks and queues manipulate.
-
-
-
Read this section, which introduces arrays and then discusses a specific implementation that uses arrays. Do not read the section on linked lists; we will cover them later in the course.
-
-
-
-
-
Read section 4.2 on stacks. You will notice that this section is not nearly as long as the section on lists; this is because stacks are based on lists.
-
Equation parsing is one application of stacks, as explained on this page.
-
-
-
-
-
Read section 4.3 on queues, which discusses some modifications to the list implementation that help to facilitate queues.
-
Job scheduling is one application of queues, as explained on this page.
-
-
-
-
Take this assessment to see how well you understood this unit.
- This assessment does not count towards your grade. It is just for practice!
- You will see the correct answers when you submit your answers. Use this to help you study for the final exam!
- You can take this assessment as many times as you want, whenever you want.
-