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 (1/20, 1/25):
- Bank-account example, very preliminary version (2/08):
- Bank-account example, revised version (2/17?):
- Miscellaneous examples (enum, generics, scanner) (2/17?):
- Sorting and searching examples (2/24, 3/03):
- Abstract data type examples, including iterator (3/08, 3/24):
- Simple GUI examples (4/05, 4/07, plus some extras):
- Simple graphics examples (4/07, 4/14, plus some extras):
- Simple examples of multithreading (4/14, plus some extras):
- Recursive data structures (sorted linked list, binary search tree)
(4/19):
- I/O (4/26?):
- Networking (??):
- RMI (??):