COS 126 Lectures, Spring 2002

The following table contains links to the course packet lecture notes, precept notes, and in-class demos.


Lecture Notes Precept Notes In-class Demos
 
I1.   Introduction  
LFBSR applet LFBSR demo
 
Programming
 
P1.   Introduction to C
variables basic ops
conditions loops
 
P2.   Arrays arrays
C code Insertion sort
Shuffling
P3.   Unix  
C and Unix code
P4.   Structs and Data Types structs
C code
P5.   Abstract Data Types
modular programming
ADTs: stacks and queues
C code Stack of plates
Stack array Postfix
PostScript Queue array
P6.   Recursion
functions recursion
variable scope
C code Function calls
Recursive sum Bisection
Hanoi applet
P7.   Advanced Recursion  
C code Partitioning
Quicksort Permutations
 
Architecture
 
A1.   The X-TOY machine  
X-TOY applet
A2.   X-TOY Programming and Simulation  
C simulator 2's complement
A3.   Boolean Circuits
Boolean circuits
Circuit applet Hydraulic OR
A4.   Sequential Circuits
sequential circuits
Circuit applet
A5.   Building a TOY m    
 
Advanced Programming 
 
P8.   Pointers and Linked Lists
pointers linked lists
pass-by-reference
C code Pointer
Bad swap Swap
Static list Dynamic list
P9.   WAR Card Game  
C code Deal
Play
P10. Trees
BSTs strings
Binary search BST applet
BST search BST insert
Preorder Level order
 
Theory of Computation 
     
T1.   Pattern Matching
RE grep
10(10)* FSA acat FSA
grep examples
T2.   Turing Machines
FSA PDA
NFSA 1 (naive) (systematic)
NFSA to FSA PDA
NPDA Turing 1
Turing 2
T3.   Computability computability
PCP contest PCP checker
T4.   Analysis of Algorithms  
Insertion sort Merge
Partition WinSort
T5.   NP-Completeness NP-completeness
MineSweeper
 
Special Topics 
 
S1.   Cryptology  
Crypto history
S2.   Artificial Intelligence  
8-puzzle Eliza
 
Review 
 
R1.   Course Review  
Course objectives


How to read the files.

Get Aladdin GSView 6.01 Get Acrobat
Reader Get Java 1.3
plug-in Get Microsoft
Products


Content subject to change.

Any significant changes or corrections to the slides will be noted in the course announcements. You are responsible for the information in the (most up to date) electronic versions.



Credits

The lecture note material was created by Robert Sedgewick and adapted to PowerPoint by Kevin Wayne. The precept notes were written by Lisa Worthington.



Copyright © 2001, Robert Sedgewick. Page maintained by Kevin Wayne.

Back to COS 126