Elementary Data Structure




CS146

Chris Pollett

Apr 2, 2014

Outline

Sets in Computer Science

Operations on dynamic sets

Let's look at some dynamic sets now...

Stacks and Queues

Array Implementation of a Stack

Example Operations on a Stack

Stack Example

Array Implementation of a Queue

Queue Pseudo-code

Queue Example

Example of queue operations

Linked Lists

Examples of Doubly Linked Lists

Common Forms of Lists

Pseudo-code of some list operations