. How many decision trees are there with 3 binary attributes? With 4? . In class we looked at an example where all the attributes were binary (i.e., yes/no valt an example where instead of the attribute “Morning?", we had an attribute “Time" when the class begins.
Decision trees
please see the attchment for the questions. we need the soultion before mid night today 2/6/2022
1.
Decision trees are there with 3 binary attributes:-------------
For three attributes there are 7 nodes in the tree, i.e., for n = 3, number of nodes = 23-1.
Similarly, if we have n attributes, there are 2n - 1 nodes (approx.)
Decision trees are there with n binary attributes = 22n
So, for 3 binary attributes = 223 = 28 = 256 Decision trees
Decision trees are there with 4 binary attributes:-------------
For three attributes there are 15 nodes in the tree, i.e., for n = 4, number of nodes = 24-1.
Similarly, if we have n attributes, there are 2n - 1 nodes (approx.)
Decision trees are there with n binary attributes = 22n
So, for 3 binary attributes = 224 = 216 = 65,536 Decision trees
Trending now
This is a popular solution!
Step by step
Solved in 2 steps