CSCI 1321 (Principles of Algorithm Design II):
Sample Programs
Disclaimer: Code linked from this page is intended as a
cleaned-up and commented version of examples from class.
Many programs and classes could be further improved with
regard to functionality or design, but then they would
no longer be as close to what we did in class.
A note about source code:
Some browsers apparently do not display Java source code correctly
("flowing" it into one big paragraph).
It's not clear that this is easily fixed, but
a workaround is to use the
browser's "save" function to save it to a local file and look at
it there.
- Simple first programs (8/31, 9/02):
- Bank-account example, very preliminary version (9/07):
- Bank-account example, slightly less preliminary version (9/16):
- Bank-account example, revised version (9/30):
- Sorting and searching examples (10/05, 10/07, 10/14):
- Abstract data type examples, preliminary version
(10/14 with additions, 10/26):
- Simple GUI and graphics examples (11/04, 11/09, plus some extras):
- Simple examples of multithreading (11/11):
- Recursive data structures (sorted linked list, binary search tree)
(11/16, 11/18, 11/23):
- I/O (12/02):
- Networking (12/02, 12/07):
- RMI (not shown in class):