CS 146: Homework due 3/24

Programming assignment: Consider 2-3 trees, as discussed in class. You are to implement this data structure. You will need to allow for insertions, and also for searches as described below. You will not need deletions. (For notes on how to get input, you may use: Java Input Notes, but you do not need to.) Note: both the input and output format are precisely specified for the problem. If you assume a different input format, your program may or may not work correctly. If you give a different output, your solution will be rejected. Do not add extra spaces, do not make any assumptions not in the problem specification. I will be automating the testing of your programs, and the automated system will not be very forgiving. It should not take great effort for me to get your code to run.

You need to submit your solutions to me. You should email them to me with the following subject line: "CS146Spring06: Program 2 TaylorDS", without the quotes, and where TaylorDS is replaced by Your last name and initials. The email should be empty, other than an attached file of source code, in a single text file named "prog2.java" (no quotes). I should be able to compile it, and run it on a test case of my own with no fuss. Please follow these directions carefully, as the process will be (hopefully) automated. I will allow you to use any fairly recent version of Java.

Your program is officially due 3/24. I will not assign homework for over the break, I think it is best to take a break. On the other hand, I know that many of you are very busy just before break and rather than "forcing" you to take a break from my class, I will accept this program, without penalty, for one extra week (until 3/31). This only forces a one weekend break.