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

  1. The 3n + 1 problem
    (Sample starter in C, and Java version, sample infile)

  2. (One dimensional arrays): Tally Lab: C shell, Java shell, sample tally data file,

  3. (Two dimensional arrays): Implement Conway's Game of Life, (also see this simulation and experiment with various life forms )

  4. (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)

  5. (Binary trees): Given in the shell programs: Print InOrder, Insert into Ordered Binary Tree, Read a file of words into a String array