Question
Implement a binary search decision tree a decision tree. Include a decision tree for if you should take a course (or other decision you wish
Implement a binary search decision tree a decision tree. Include a decision tree for if you should take a course (or other decision you wish to make.) First draw the tree. Next implement a linked-based implementation of a binary tree to represent your decision tree. Include a driver so that all paths can be traversed on your tree. Ask the first question to the user, their answer determines the subtree traversal. Sample output: Are you hungry? y Do you have money? n Eat at home!
Decision trees are not always binary trees:
What should you do today?
Work to do? Internal node Yes No Stay in Outlook? Branch Sunny Rainy Over- cast Go to beach Go running Friends busy? Yes No Leaf node Stay in Go to movies
Step by Step Solution
3.39 Rating (155 Votes )
There are 3 Steps involved in it
Step: 1
import javaio class DecisionTree NESTED CLASS private class BinTree FIELDS private int nodeID private String questOrAns null private BinTree yesBranch null private BinTree noBranch null CONSTRUCTOR pu...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started