Question: BIT URGENT QUESTION A sample decision tree for classifying the given software module as having defects or no-defects is given. Derive if-then rules from this

 BIT URGENT QUESTION A sample decision tree for classifying the given

BIT URGENT QUESTIONsoftware module as having defects or no-defects is given. Derive if-then rules

A sample decision tree for classifying the given software module as having defects or no-defects is given. Derive if-then rules from this tree and code these rules as Prolog rules. The Prolog code must take the attribute values as input and classify whether the module has defects using the decision tree as reference. Attribute Information: % \% 1. loc @numeric \% McCabe's line count of code \% 2.v(E) : numeric \% McCabe "cyclomatic complexity" \% 3. ex(g) : numeric \% McCabe "essential complexity" \% 4. iv(g) : numeric \% McCabe "design complexity" \% 5. n inumeric \% Halstead total operators + operands \% 6.v @numeric \% Halstead "volume" \% 7.1 numeric \% Halstead "program length" \% 8.d inumeric \% Halstead "difficulty" \% 9. i i numeric \% Halstead "intelligence" \% 10. e : numeric \% Halstead "effort" \% 11.b numeric \% Halstead \% 13. defects \{false,true\}\% module has/has not one or more %% reported defects Evaluations will be based on the following. 1. Use Min-Max algorithm and implement the game in PYTHON (35\% marks) 2. Derive the rules from the given decision tree and code as Prolog rules. ( 35% marks) 3. Interactive implementation. Dynamic inputs-based run of the game with step wise board display and error free game ending. ( 15% marks) 4. Interactive implementation. Dynamic inputs-based run of the logic expert system with step wise options display and error free recommendation \& ending. ( 15% marks)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!