(Latest Revision: 04/15/2002)
Week 09 Notes for CS 2500, Section 001 -- Spring 2002
CS 2500, Section 001, Tuesday, April 16, 2002
- Look at Upcoming Schedule
- Class starts at 09:40. I take roll at 09:50
- Announcement(s)
- I moved back the date for Quiz #2. Now the quiz is scheduled for
Thursday, April 25 (instead of April 18). Bring a blue book for
the quiz -- the small size and *not* the large size.
-
- Catch up on lecturing about lists
- Discuss Definition of the stack data type
- Organization -- Last-In, First-Out
- Elements -- any given homogeneous set
- Operations
- constructor(s)
- destructor(s)
- bool StackIsEmpty()
- void Push(stackItemType NewItem, bool& Success)
- void Pop(bool& Success)
- void Pop(stackItemType& StackTop, bool& Success)
- void GetStackTop(stackItemType& StackTop, bool& Success)
- Discuss applications of the stack data type
- Evaluating postfix expressions
- "Towers of Hanoi" puzzle program
- depth-first search
-
CS 2500, Section 001,Thursday, April 18, 2002
- Look at Upcoming Schedule
- Class starts at 09:40. I take roll at 09:50
- Announcement(s)
- Discuss implementations of the stack data type
- array-based implementation
- pointer-based implementation
- "as-a-list" implementations