Senior Research 2006-2007 "Warmup" Programming Assignments
Implement the following warmup problems in both Java and C. These warmup programs cover:
general algorithms, single and double dimension arrays, singly linked lists, and binary trees.
See new features of Java 1.5
and the following C tutorials:
C Language Tutorial,
C Programming,
C Programming Tutorial,
Programming in C, and
stdio.h
- The 3n + 1 problem
(Sample starter in C,
and
Java version,
sample infile)
- (One dimensional arrays): Tally Lab:
C shell,
Java shell,
sample tally data file,
- (Two dimensional arrays): Implement Conway's Game of Life,
(also see this
simulation and experiment with various life forms
)
- (Linked lists):
Given in the shell programs: Print list, Add first, and RemoveNth - recursive version (removes the nth item in a linked list, item 0 is the first)
Complete:
- RemoveNth - non recursive version
- Add last - add a value to the end of the linked list (the null end)
- (Binary trees): Given in the shell programs: Print InOrder, Insert into Ordered Binary Tree,
Read a file of words into a String array
Complete:
- Insert words (strings) into an ordered binary tree.
- Print the words in order (from the binary tree)