Homework 3
CS522, Fall 2007


Due: Wednesday, November 14

Please upload your files to CSNS. The files should include all the source code, documentation (optional), and a text file hw3.txt, which contains detailed instructions on how to compile and run your program on the CS3 server. Note that file uploading will be disabled automatically after 11:59PM of the due date, so please turn in your work on time.

[Readings]

[Decision Tree Induction] (90pt)

For this assignment, you are going to implement a decision tree classifier as described in Chapter 6.3 of the textbook. You may use any programming language of your choice, as long as your program can be compiled and run on CS3.

Use the Forest CoverType dataset to test your classifier as follows (I'm going to use Java for examples, but as stated earlier, you may use other programming languages):

java DecisionTreeClassifier <TrainingSet> <TestSet> <ResultSet>

Your classifier should also output to the console the percentage of the correctly classified records, e.g. 50%. Please do not output any debugging information in the submitted version.

Note that

[Extra Credit] (5pt)

Given n distinct items, how many sequences with n events are there? Please give your answer and explain your reasoning in hw3.txt.