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.
- Geometric shapes (example of inheritance),
version 1 (01/27, 01/29, 02/03).
Documentation (with links to code).
- Geometric shapes (example of inheritance and interfaces),
version 2 (02/07).
Documentation (with links to code).
- Sorting, searching, and inner classes
(02/10, 02/14, 02/19).
Documentation (with links to code).
- Containers -- stacks, queues, lists, and trees
(02/19, 02/21, 02/24, 02/28, 04/11, 04/14).
Documentation (with links to code).
- GUIs and graphics (03/07, 03/28).
Documentation (with links to code).
- Recursion (04/02).
Documentation (with links to code).
- Sorting and searching, revisited (04/07).
Documentation (with links to code).
- Threads (04/21).
Documentation (with links to code).
- Files, streams, and networking (04/23, 04/25, 04/28).
Documentation (with links to code).
- Simple client/server chat application, sockets version
(04/28).
Documentation (with links to code and instructions
for running application).
- Simple client/server chat application, RMI version
(04/30).
Documentation (with links to code and instructions
for running application).