
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Notes; Professor: Sloan; Class: Data Structures; Subject: Computer Science; University: Wofford College; Term: Fall 2008;
Typology: Study notes
1 / 1
This page cannot be seen from the preview
Don't miss anything!

Class 10: Monday, September 22, 2008 Stack and Linear Data Structures Linear Structures include stacks, lists, queues, deques, arrays Stacks—LIFO vs. Queue—FIFO Terms: pushdown stack, top, base (or bottom) Examples: tasks and interruptions, plates in cafeteria, back button on browsers, call stack on computer (subroutine calls) ADT for Stack Stack() a stack (creator) push(item) (mutator) pop() item (mutator) peek() item (accessor) isEmpty() True, False size() Natural number Implementations: see text Balance paren’s example Began Infix, Prefix, Postfix notations Homework for Wednesday: Modify code on 61 to work with a program in a file.