Decision tree for the above given table :

Explanation :
Every attribute given in the table has two values.
So, we need two children nodes per attribute nodes.
Given, to take "Type" as root node, we have two value either to take one or two. Taking one decision leads to the second node which is "Scale".
From Scale node, we again take decision based on "One/Two" and go to the next level.
By traversing all the nodes, at last we take "Texture" node as leaf node as it has one single value which is "Thin".
So in this decision tree, no matter what route you take or what decisions you make form selecting the type, you will always end up with thin texture.
For example, One person wants to select a cloth material.
So, at node Type, he selected "one"
Then at Scale node, he selected "two"
At Shade node, he needed light shade so he selected "Light"
At Class node, he found class A as preferable, So he selected "A".
Finally he was left with thin texture so he selected "Thin" as texture.
So, the decision path for this person becomes,
One --> Two --> Light --> A --> Thin
Q2A Construct a decision tree with root node Type from the data in the table below....
Can you give me a poste for Science Writing TOPIC: DECISION TREE Decision Tree Algorithm Pseudocode:- 1) Place the best attribute of the dataset at the root node of the tree. 2) Split the training set into subsets. Subsets should be make in such a way that each subset contains data with the same value for an attribute. 3) Repeat steps 1 and 2 on each subset until you find leaf nodes in all the branches of the tree. Two...
QUESTION 1 In a tree, a ____ is a node with successor nodes. root child descendent parent sibling QUESTION 2 In a tree, the ____ is a measure of the distance from a node to the root. count degree branch height level QUESTION 3 Which of the following is not a characteristic of a binary search tree? Each node has zero, one, or two successors. The preorder traversal processes the node first, then the left subtree, and then the right...
Using the following implementation of Tree class Node { public int iData; // data item (key) public double dData; // data item public Node leftChild; // this node's left child public Node rightChild; // this node's right child public void displayNode() // display ourself { System.out.print('{'); System.out.print(iData); System.out.print(", "); System.out.print(dData); System.out.print("} "); } } // end class Node //------------------------------------------------------------------ import java.io.IOException; import java.util.Stack; public class Tree { private Node root; // first node of tree // ------------------------------------------------------------- public Tree() // constructor { root = null; }...
The following table consists of training data from an employee
database. The data
have been generalized. For example, “31 . . . 35” for age
represents the age range
of 31 to 35. For a given row entry, count represents the
number of data tuples
having the values for department, status, age, and salary
given in that row.
department status age salary count
sales senior 31. . . 35 46K. . . 50K 30
sales junior 26. . . 30...
1) In the XPath data model, a root node represents _______________? a) the document itself b) all within the XML declaration c) all the information within a particular namespace d) the root element 2) What is not a valid XPath data model node? a) Element b) Root c) Attribute d) Text e) Document type declaration 3) which of the following lines is the abbreviated syntax of attribute::attributename? a) %Cattributame b) &attributename c) @attributename d) #attributename 4) Axes are used to...
IN JAVA
2 A Binary Search Tree The goal of this lab is to gain familiarity with simple binary search trees. 1. Begin this lab by implementing a simple class that represents a "node” in a binary search tree, as follows. public class MyTreeNode<t extends Comparable<T>> { public T data; public MyTreeNode<T> leftchild; public MyTreeNode<T> rightChild; public MyTreeNode<T> parent; 2. Have the second member of your pair type in the code for the simple binary search tree interface. public interface...
Exercise 1 Adjacency Matrix In this part, you will implement the data model to represent a graph. Implement the following classes Node.java: This class represents a vertex in the graph. It has only a single instance variable of type int which is set in the constructor. Implement hashCode() and equals(..) methods which are both based on the number instance variable Node - int number +Node(int number); +int getNumberO; +int hashCode() +boolean equals(Object o) +String toString0) Edge.java: This class represents a...
Start with the tree.java program (Listing 8.1) and modify it to create a binary tree from a string of letters (like A, B, and so on) entered by the user. Each letter will be displayed in its own node. Construct the tree so that all the nodes that contain letters are leaves. Parent nodes can contain some non-letter symbol like +. Make sure that every parent node has exactly two children. Don’t worry if the tree is unbalanced. Note that...
C++ Binary Search Tree question. I heed help with the level 2
question please, as level 1 is already completed. I will rate the
answer a 100% thumbs up. I really appreciate the help!. Thank
you!
searching.cpp
#include <getopt.h>
#include <iostream>
#include <sstream>
#include <stdlib.h>
#include <unistd.h>
using namespace std;
// global variable for tree operations
// use to control tree maintenance operations
enum Mode { simple, randomised, avl } mode; // tree type
// returns size of tree
//...
C++ Binary Search Tree question. I heed help with the level 2
question please, as level 1 is already completed. I will rate the
answer a 100% thumbs up. I really appreciate the help!. Thank
you!
searching.cpp
#include <getopt.h>
#include <iostream>
#include <sstream>
#include <stdlib.h>
#include <unistd.h>
using namespace std;
// global variable for tree operations
// use to control tree maintenance operations
enum Mode { simple, randomised, avl } mode; // tree type
// returns size of tree
//...