0% found this document useful (0 votes)
29 views

6-Decision Tree & Decision Table

The decision table outlines the discount rates applicable based on the number of units ordered, payment method, and customer type with the following conditions: less than 50 units ordered, cash on delivery

Uploaded by

Raja Pandey
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views

6-Decision Tree & Decision Table

The decision table outlines the discount rates applicable based on the number of units ordered, payment method, and customer type with the following conditions: less than 50 units ordered, cash on delivery

Uploaded by

Raja Pandey
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

Decision Trees and Decision Tables

Decision Trees and Decision Tables


• Often our problem solutions require decisions to be made
according to two or more conditions or combinations of
conditions
• Decision trees represent such decision as a sequence of steps
• Decision tables describe all possible combinations of
conditions and the decision appropriate to each combination
• Levels of uncertainty can also be built into decision trees to
account for the relative probabilities of the various outcomes

2
Decision Tree Showing Possible
Outcomes Projected
Sales
Results
Outcomes

A.1 Sales Up 10%

Outcome A
A.2 Sales Up 15%

Decision Made
B.1 Sales Up 5%

Outcome B
B.2 Sales Even

3
Decision Tree of Outcomes -- Quantifying Uncertainties
Projected
Sales
Results

80%
A.1 Sales Up 10% 32%

Outcome A
40% 20% A.2 Sales Up 15% 8%

Decision Made
70% B.1 Sales Up 5% 42%

60%
Outcome B

30% B.2 Sales Even 18%

4
Example of Using a Decision Tree or
Table to Capture Complex Business
Logic
Consider the following excerpt from an actual business
document:

If the customer account is billed using a fixed rate method, a minimum


monthly charge is assessed for consumption of less than 100 kwh.
Otherwise, apply a schedule A rate structure. However, if the account is
billed using a variable rate method, a schedule A rate structure will apply to
consumption below 100 kwh, with additional consumption billed according
to schedule B.

5
Articulating Complex Business Rules
■ Complex business/logic rules, such as our example, can
become rather confusing
■ Capturing such rules in text form alone can lead to ambiguity
and misinterpretation
■ As an alternative, it is often wise to capture such rules in
decision tress or decision tables
■ The examples on the following slides will illustrate this
technique
Decision Tree for this Example
< 100 kwh minimum charge
fixed
rate
billing >= 100 kwh schedule A

< 100 kwh schedule A


variable
rate schedule A on
billing first 99 kwh
>= 100 kwh schedule B on
kwh 100 and above

7
Decision Table for Example – Version 1
Is this a
Rules valid
business
Conditions 1 2 3 4 case? Did
5Fixed rate acct T T F F F
we miss
something?
Variable rate acct F F T T F
Consumption < 100 kwh T F T F
Consumption >= 100 kwh F T F T
Actions
Minimum charge X
Schedule A X X
Schedule A on first 99 kwh, X
Schedule B on kwh 100 +

8
Decision Table for Example – Version 2
Rules
Conditions 1 2 3
4Account type fixed fixed variable variable
Consumption < 100 >=100 <100 >= 100

Actions
Minimum charge X
Schedule A X X
Schedule A on first 99 kwh, X
Schedule B on kwh 100 +

9
Decision Table

Identify all the possible requirements and conditions of an online shopping portal based on
the given Decision Table:

C1 Less than 50 units


Y Y Y Y N N N N
ordered
C2 Cash On Delivery
Y Y N N Y Y N N

C3 Wholesale Outlet
Y N Y N Y N Y N

A1 Discount Rate 0%
×
Discount Rate 2%
A2
× × ×
A3 Discount Rate 4%
× × ×
Discount Rate 6%
A4
×

You might also like