Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

BIT URGENT QUESTIONimage text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

9th Edition

0135188148, 978-0135188149, 9781642087611

More Books

Students also viewed these Databases questions