



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: Paper; Professor: Galles; Class: Data Struct & Algorithms; Subject: Computer Science; University: University of San Francisco (CA); Term: Spring 2009;
Typology: Papers
1 / 5
This page cannot be seen from the preview
Don't miss anything!




04-0: Abstract Data Types
04-1: Abstract Data Types
04-2: Stack
A Stack is a Last-In, First-Out (LIFO) data structure.
Stack Operations:
04-3: Stack Implementation Array: 04-4: Stack Implementation Array:
04-5: Stack Implementation
04-6: Θ() For Stack Operations
Array Implementation: push pop empty() 04-7: Θ() For Stack Operations Array Implementation:
push Θ(1) pop Θ(1) empty() Θ(1) 04-8: Stack Implementation Linked List: 04-9: Stack Implementation
Linked List:
04-10: Stack Implementation
04-11: Θ() For Stack Operations Linked List Implementation: push pop empty() 04-12: Θ() For Stack Operations Linked List Implementation: push Θ(1) pop Θ(1) empty() Θ(1) 04-13: Queue A Queue is a First-In, First-Out (FIFO) data structure.
Queue Operations:
04-14: Queue Implementation
Linked List: 04-15: Queue Implementation Linked List:
Dequeue: elem = head.element(); head = head.next();
04-25: Modifying Queues
04-26: Modifying Queues
04-27: Modifying Queues
04-28: Modifying Queues
04-29: Modifying Queues
04-30: Modifying Queues
04-31: Amortized Analysis