




































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





































































Douglas Wilhelm Harder, M.Math. LEL Department of Electrical and Computer Engineering University of Waterloo Waterloo, Ontario, Canada ece.uwaterloo.ca [email protected] © 2006-2013 by Douglas Wilhelm Harder. Some rights reserved. Douglas Wilhelm Harder, M.Math. LEL Department of Electrical and Computer Engineering University of Waterloo Waterloo, Ontario, Canada ece.uwaterloo.ca [email protected] © 2006-2013 by Douglas Wilhelm Harder. Some rights reserved.
2 Outline
4 Abstract Stack
5 Applications
7 Linked-List Implementation
Front/ 1 st Back/ n th Find (^) Q(1) Q(1) Insert (^) Q(1) Q(1) Erase (^) Q(1) Q( n )
8 Stack-as-List Class
template
10 Stack-as-List Class
template
11 Stack-as-List Class
template
13 Destructor
14 Stack-as-Array Class
16 Constructor
template
17 Destructor
19 Top
template
20 Pop