CS 138
Introduction to Data Abstraction and Implementation
NO TIME FOR REMORSE
- TA James Hou
Private parts are visible to children
- Slideshow
I was shaving yaks
- Prof. Mike Godfrey
- The C++ Memory Model, Linked Structures, and some ADTs
- Memory Model
- Struct/Class Instances
- Pointers
- Linked List
- Abstract Data Types
- Stack
- Implementing stack with a linked list
-
- C assert macro
- Implementing the stack ADT with a vector
- The adapter design pattern
- Reference Parameters
- Reference parameter examples (Constants)
- Scopes of variables and activation records (stack frames) on the runtime stack
- Recursion
- Queue
- Implementing queue with vector and linked list
- A note on defensive programming
- Types of linked list
- A word on testing
- Sorted linked list (common sense)
- Sorted linked list (insert)
- Sorted linked list (remove)
- Priority Queue
- Object-Oriented Programming
- Introducing classes, structs on steroids
- Class definition vs declaration
- Constructors