Nick Bridle Email: nbridle@cs.wisc.edu Office: 1351 CS Building Office Hours: Tuesdays 2:30 - 3:30pm and Wednesdays 3:00 - 4:00pmIf you cannot make my office hours, feel free to email me to schedule a different time to meet.
shape = circle:
age = young: +
age = old:
color = red: -
color = green: +
shape = square:
color = red: +
color = green: -
It is reasonably easy to write Java code to produce the above using recursion,
where a "treeDepth" (an int) is passed in and used to determine
the amount of leading spaces per line (say 2 x treeDepth spaces). If you're having trouble with this, come talk to me at my office hours and I can help you out.
javac *.java
java BuildAndTestDecisionTree (parameters)
Computer Sciences Department
College of Letters and Science
University of Wisconsin - Madison
INFORMATION
~ PEOPLE
~ GRADS
~ UNDERGRADS
~ RESEARCH
~ RESOURCES
5355a Computer Sciences and Statistics ~ 1210 West Dayton Street, Madison,
WI 53706
cs@cs.wisc.edu ~ voice: 608-262-1204 ~
fax: 608-262-9777